79% chick-comic-embedder

Code Review | Chick Comic Embedder

WordPress plugin Chick Comic Embedder scored79%from 54 tests.

About plugin

  • Plugin page: chick-comic-embedder
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2013
  • Latest release: Jun 19, 2013
  • Number of updates: 7
  • Update frequency: every 18.4 days
  • Top authors: JD55 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /921 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.73ms] Passed 4 tests

An overview of server-side resources used by Chick Comic Embedder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.63 ▼2.61
Dashboard /wp-admin3.35 ▲0.0044.61 ▼15.67
Posts /wp-admin/edit.php3.40 ▲0.0446.22 ▼2.36
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.85 ▼8.04
Media Library /wp-admin/upload.php3.27 ▲0.0431.72 ▼4.60
Chick Comics /wp-admin/options-general.php?page=chick_comics3.2227.47

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
cce_default_style
db_upgraded
cce_default_unavailable
widget_theysaidso_widget
cce_default_comic

Browser metrics Passed 4 tests

A check of browser resources used by Chick Comic Embedder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.38 ▼0.021.64 ▼0.1541.71 ▲1.96
Dashboard /wp-admin2,199 ▲225.57 ▼0.0689.29 ▲3.6942.48 ▼3.67
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0739.65 ▲2.3836.70 ▼0.39
Add New Post /wp-admin/post-new.php1,538 ▲118.27 ▼0.12619.43 ▼30.8770.61 ▲1.35
Media Library /wp-admin/upload.php1,407 ▲44.18 ▼0.0094.12 ▼7.6040.95 ▼5.53
Chick Comics /wp-admin/options-general.php?page=chick_comics9552.0022.7332.59

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • cce_default_comic
    • widget_recent-comments
    • cce_default_unavailable
    • cce_default_style

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=chick_comics
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=chick_comics
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 5× 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/chick-comic-embedder/options.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/chick-comic-embedder/styles-preview-template.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/chick-comic-embedder/chick-comic-embedder.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/chick-comic-embedder/style-preview.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chick-comic-embedder/shortcode.php:40

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 Passed 29 tests

readme.txt Passed 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
5 plugin tags: comics, shortcode, tract, chick, comic

chick-comic-embedder/chick-comic-embedder.php Passed 13 tests

"Chick Comic Embedder" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
100 characters long description:
This plugin allows you to embed Jack Chick's great comics into your posts and pages using shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin298 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5115233273
CSS16625

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin