10% comic-rocket-ad-network-widget

Code Review | Comic Rocket Ad Network Widget

WordPress plugin Comic Rocket Ad Network Widget scored10%from 54 tests.

About plugin

  • Plugin page: comic-rocket-ad-n...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 15, 2013
  • Latest release: Apr 16, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: comic-rocket (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,158 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/comic-rocket-ad-network-widget/comicrocket.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; comicrocket_widget has a deprecated constructor

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.34ms] Passed 4 tests

Server-side resources used by Comic Rocket Ad Network Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.444.53 ▼37.61
Dashboard /wp-admin2.08 ▼1.2610.19 ▼40.50
Posts /wp-admin/edit.php2.09 ▼1.316.16 ▼40.57
Add New Post /wp-admin/post-new.php2.08 ▼3.845.72 ▼90.69
Media Library /wp-admin/upload.php2.09 ▼1.195.93 ▼28.61

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_comicrocket_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Comic Rocket Ad Network Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.94 ▲0.2339.00 ▼13.73
Dashboard /wp-admin2,195 ▲185.63 ▼0.0691.64 ▲1.5138.28 ▼6.20
Posts /wp-admin/edit.php2,103 ▲32.02 ▼0.0139.80 ▲1.2636.85 ▼4.10
Add New Post /wp-admin/post-new.php1,526 ▼223.14 ▼0.02656.50 ▲36.3956.88 ▼13.71
Media Library /wp-admin/upload.php1,394 ▲34.19 ▼0.0399.14 ▼1.2443.00 ▼1.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/comic-rocket-ad-network-widget/comicrocket.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; comicrocket_widget has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_comicrocket_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/comic-rocket-ad-network-widget/comicrocket.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: comic, ads, widget, webcomic, comicrocket

comic-rocket-ad-network-widget/comicrocket.php 92% from 13 tests

The main PHP file in "Comic Rocket Ad Network Widget" ver. 0.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("comic-rocket-ad-network-widget.php" instead of "comicrocket.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132441

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin