78% theme-checklist

Code Review | Theme Checklist

WordPress plugin Theme Checklist scored 78% from 54 tests.

About plugin

  • Plugin page: theme-checklist
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.0
  • WordPress version: 5.8.1
  • First release: Aug 8, 2014
  • Latest release: Oct 9, 2014
  • Number of updates: 7
  • Update frequency: every 8.9 days
  • Top authors: gpriday (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,196 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼144.88ms] 75% from 4 tests

An overview of server-side resources used by Theme Checklist
Please take the time to fix the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 17,124.94ms on /wp-admin/tools.php?page=theme-checklist)
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0530.70 ▼3.67
Dashboard /wp-admin3.11 ▲0.0648.38 ▼1.58
Posts /wp-admin/edit.php3.16 ▲0.0545.26 ▼0.38
Add New Post /wp-admin/post-new.php5.47 ▲0.0487.92 ▼564.32
Media Library /wp-admin/upload.php3.05 ▲0.0532.41 ▼9.93
Theme Checklist /wp-admin/tools.php?page=theme-checklist3.0617,124.94

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

An overview of browser requirements for Theme Checklist
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.94 ▲0.3511.77 ▼3.3449.25 ▲3.02
Dashboard /wp-admin2,975 ▲445.93 ▼0.01147.05 ▲3.43109.73 ▲9.69
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0066.09 ▼4.5197.19 ▲11.77
Add New Post /wp-admin/post-new.php1,501 ▲118.82 ▲0.37383.97 ▼22.28109.79 ▼4.41
Media Library /wp-admin/upload.php1,812 ▲55.02 ▼0.01157.44 ▲2.34113.52 ▼4.47
Theme Checklist /wp-admin/tools.php?page=theme-checklist9262.1336.4363.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 1 option
    • recovery_mode_email_last_sent

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)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=theme-checklist
    • > Error in wp-content/plugins/theme-checklist/theme-checklist.php+97
    Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/theme-checklist/theme-checklist.php:97
    Stack trace:
    #0 wp-content/plugins/theme-checklist/tpl/admin-page.php(13): theme_checklist_load_checks()
    #1 wp-content/plugins/theme-checklist/theme-checklist.php(64): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(303): theme_checklist_render_admin()
    #3 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(470): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/tools.php(40): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/theme-checklist/tpl/admin-page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-checklist/theme-checklist.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: gallery, widget

theme-checklist/theme-checklist.php Passed 13 tests

The principal PHP file in "Theme Checklist" v. 1.0.3 is loaded by WordPress automatically on each request
89 characters long description:
A checklist of the most common snag points that developers run into when creating themes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin971 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47351324
PHP27968273
LESS1381189
CSS101171
SVG10013
JSON1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected