84% hello-simpsons-chalkboard-gag

Code Review | Hello Simpsons Chalkboard Gag

WordPress plugin Hello Simpsons Chalkboard Gag scored84%from 54 tests.

About plugin

  • Plugin page: hello-simpsons-ch...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 30, 2012
  • Latest release: Dec 11, 2016
  • Number of updates: 25
  • Update frequency: every 57.7 days
  • Top authors: dan.rossiter (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /5,480 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.18ms] Passed 4 tests

Server-side resources used by Hello Simpsons Chalkboard Gag
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.91 ▼1.43
Dashboard /wp-admin3.33 ▲0.0244.48 ▼12.94
Posts /wp-admin/edit.php3.38 ▲0.0247.49 ▲1.64
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.22 ▼0.00
Media Library /wp-admin/upload.php3.25 ▲0.0336.44 ▲3.43

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
simpsons-gags
widget_recent-comments
widget_theysaidso_widget
simpsons-first-run
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Hello Simpsons Chalkboard Gag
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲3413.26 ▼1.121.70 ▼0.2138.18 ▼9.23
Dashboard /wp-admin2,211 ▲235.01 ▼0.88107.83 ▼6.8042.50 ▼2.46
Posts /wp-admin/edit.php2,093 ▲72.04 ▲0.0638.52 ▲2.0135.70 ▼7.81
Add New Post /wp-admin/post-new.php1,587 ▲5022.11 ▼1.08660.60 ▲2.2339.36 ▼13.16
Media Library /wp-admin/upload.php1,393 ▲54.19 ▼0.0195.69 ▼1.7646.28 ▲5.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hello-simpsons-chalkboard-gag/hello-simpsons-chalkboard-gag.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
6 plugin tags: fun, hello dolly, admin panel, bart simpson, simpsons...

hello-simpsons-chalkboard-gag/hello-simpsons-chalkboard-gag.php Passed 13 tests

This is the main PHP file of "Hello Simpsons Chalkboard Gag" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
Let Bart Simpson's childish wit lighten your day by randomly adding one of his chalkboard gags to your admin panel.

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 plugin77 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1223377

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin