84% creative-news-ticker

Code Review | Creative News Ticker

WordPress plugin Creative News Ticker scored84%from 54 tests.

About plugin

  • Plugin page: creative-news-ticker
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 17, 2017
  • Latest release: Oct 17, 2017
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: mnaopu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /696 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.09ms] Passed 4 tests

An overview of server-side resources used by Creative News Ticker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.97 ▼6.26
Dashboard /wp-admin3.31 ▲0.0049.32 ▼3.84
Posts /wp-admin/edit.php3.36 ▲0.0049.29 ▼13.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.03 ▼16.55
Media Library /wp-admin/upload.php3.23 ▲0.0039.35 ▲2.00

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Creative News Ticker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16614.08 ▼0.144.98 ▲3.4143.24 ▼2.05
Dashboard /wp-admin2,211 ▲204.89 ▲0.00103.47 ▼0.6137.37 ▼9.50
Posts /wp-admin/edit.php2,094 ▲52.02 ▼0.0337.36 ▼1.2534.00 ▲0.33
Add New Post /wp-admin/post-new.php1,516 ▼1317.55 ▼0.69688.79 ▲42.0050.93 ▼1.20
Media Library /wp-admin/upload.php1,393 ▲84.25 ▲0.03112.89 ▼0.8851.22 ▲5.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/creative-news-ticker/creative-news-ticker.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Stable tag: Empty string
  • Screenshots: Please add images for these screenshots: #1 (screenshot.png), #2 ()
Please take inspiration from this readme.txt

creative-news-ticker/creative-news-ticker.php Passed 13 tests

"Creative News Ticker" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
This plugin will add a news ticker in your wordpress pages and posts with shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin67 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121258
CSS1038
JavaScript1011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/screenshot.png2.44KB2.01KB▼ 17.53%