10% comic-easel

Code Review | Comic Easel

WordPress plugin Comic Easel scored10%from 54 tests.

About plugin

  • Plugin page: comic-easel
  • Plugin version: 1.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2-5.0
  • WordPress version: 6.3.1
  • First release: May 20, 2012
  • Latest release: Nov 23, 2018
  • Number of updates: 281
  • Update frequency: every 10.3 days
  • Top authors: Frumph (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

4,000+ active /112,256 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/comic-easel/functions/filters.php+23
    Undefined variable: link

Server metrics [RAM: ▼1.56MB] [CPU: ▼54.59ms] Passed 4 tests

Server-side resources used by Comic Easel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.165.32 ▼33.76
Dashboard /wp-admin2.48 ▼0.827.28 ▼42.64
Posts /wp-admin/edit.php2.49 ▼0.878.86 ▼42.56
Add New Post /wp-admin/post-new.php2.48 ▼3.407.85 ▼99.39
Media Library /wp-admin/upload.php2.48 ▼0.7410.13 ▼27.03
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=comic2.558.01
Chapters /wp-admin/edit-tags.php?taxonomy=chapters&post_type=comic2.558.84
Debug /wp-admin/edit.php?post_type=comic&page=comiceasel-debug2.498.21
Locations /wp-admin/edit-tags.php?taxonomy=locations&post_type=comic2.558.32
Characters /wp-admin/edit-tags.php?taxonomy=characters&post_type=comic2.558.14
Add Comic /wp-admin/post-new.php?post_type=comic2.498.11
Import /wp-admin/edit.php?post_type=comic&page=comiceasel-import2.4914.56
Monetize /wp-admin/edit.php?post_type=comic&page=comiceasel-monetize2.499.64
All Comics /wp-admin/edit.php?post_type=comic2.4913.64
Config /wp-admin/edit.php?post_type=comic&page=comiceasel-config2.498.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 144 new files
Database: no new tables, 17 new options
New WordPress options
widget_ceo_casthover_reference_widget
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_ceo_comic_list_dropdown_widget
widget_ceo_comic_blog_post_widget
widget_ceo_bf_adwidget
widget_recent-comments
can_compress_scripts
widget_ceo_comic_archive_dropdown_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by Comic Easel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲17113.71 ▼0.711.98 ▲0.2438.48 ▼12.53
Dashboard /wp-admin2,298 ▲1075.87 ▲0.9799.14 ▼8.6990.75 ▲49.78
Posts /wp-admin/edit.php2,147 ▲552.14 ▲0.1336.66 ▼3.0032.91 ▼4.18
Add New Post /wp-admin/post-new.php1,616 ▲10223.02 ▲5.37751.15 ▲144.2053.15 ▲0.96
Media Library /wp-admin/upload.php1,443 ▲584.14 ▼0.1099.96 ▲1.8773.23 ▲28.27
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=comic1,3652.1427.4632.31
Chapters /wp-admin/edit-tags.php?taxonomy=chapters&post_type=comic1,3832.1428.9931.00
Debug /wp-admin/edit.php?post_type=comic&page=comiceasel-debug1,4832.0224.6524.58
Locations /wp-admin/edit-tags.php?taxonomy=locations&post_type=comic1,3202.1425.8428.80
Characters /wp-admin/edit-tags.php?taxonomy=characters&post_type=comic1,2922.1326.7330.47
Add Comic /wp-admin/post-new.php?post_type=comic3,7377.58190.61149.41
Import /wp-admin/edit.php?post_type=comic&page=comiceasel-import9692.2328.3928.20
Monetize /wp-admin/edit.php?post_type=comic&page=comiceasel-monetize1,0202.2125.8946.30
All Comics /wp-admin/edit.php?post_type=comic1,1971.9534.0130.74
Config /wp-admin/edit.php?post_type=comic&page=comiceasel-config2,3681.7027.4741.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/comic-easel/functions/filters.php+23
    Undefined variable: link
  • This plugin did not uninstall successfully, leaving 17 options in the database
    • widget_ceo_bf_adwidget
    • widget_recent-posts
    • widget_ceo_calendar_widget
    • comiceasel-config
    • widget_ceo_thumbnail_widget
    • widget_ceo_comic_list_dropdown_widget
    • can_compress_scripts
    • widget_ceo_comic_archive_dropdown_widget
    • widget_recent-comments
    • widget_ceo_casthover_reference_widget
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=comic&page=comiceasel-config
    • > Notice in wp-content/plugins/comic-easel/functions/filters.php+24
    Undefined variable: link

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
Almost there! Just fix the following items
  • 30× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_active_widget() in wp-content/plugins/comic-easel/functions/casthover.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/comic-easel/ceo-import.php:141
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/comic-easel/functions/displaycomic.php:197
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_active_widget() in wp-content/plugins/comic-easel/widgets/casthover.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/comic-easel/widgets/archive-dropdown.php:76
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comic-easel/comiceasel.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/comic-easel/monetize/afmain.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ceo_pluginfo() in wp-content/plugins/comic-easel/ceo-config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/comic-easel/functions/shortcodes.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/comic-easel/widgets/recentcomics.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=comic&page=comiceasel-config
    • > Network (severe)
    wp-admin/css/global.css?version=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=comic&page=comiceasel-config
    • > Network (severe)
    wp-admin/css/ie.css?version=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: webcomic, easel, comiceasel, comic

comic-easel/comiceasel.php 85% from 13 tests

The main PHP script in "Comic Easel" version 1.15 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 299 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("comic-easel.php" instead of "comiceasel.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin7,853 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP325515515,687
CSS12255371,113
PO File1449994923
JavaScript53418130

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity18.31
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions171
▷ Named functions171100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
91 PNG files occupy 0.41MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/nav/silver/nextchap.png11.03KB4.78KB▼ 56.66%
images/nav/comical/sharebox.png7.46KB3.61KB▼ 51.62%
images/buynow_paypal.png4.07KB2.25KB▼ 44.87%
images/nav/npc/subscribe.png3.64KB2.61KB▼ 28.30%
images/nav/npc/prev-in.png2.75KB1.32KB▼ 52.04%