84% extra-classes

Code Review | Extra Classes

WordPress plugin Extra Classes scored84%from 54 tests.

About plugin

  • Plugin page: extra-classes
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.2
  • WordPress version: 6.3.1
  • First release: Feb 11, 2013
  • Latest release: Apr 23, 2015
  • Number of updates: 12
  • Update frequency: every 66.8 days
  • Top authors: husobj (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /2,275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.56ms] Passed 4 tests

This is a short check of server-side resources used by Extra Classes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0549.32 ▲4.79
Dashboard /wp-admin3.36 ▲0.0555.72 ▼0.13
Posts /wp-admin/edit.php3.47 ▲0.1253.34 ▼1.40
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.67 ▼11.73
Media Library /wp-admin/upload.php3.28 ▲0.0540.27 ▲3.04

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Extra Classes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.021.95 ▲0.1343.78 ▼0.98
Dashboard /wp-admin2,195 ▲185.58 ▲0.0189.43 ▼3.8138.53 ▼4.77
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0034.57 ▼6.3133.56 ▼9.15
Add New Post /wp-admin/post-new.php1,526 ▼1123.95 ▲5.49691.64 ▲59.3954.18 ▼7.48
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.1299.45 ▼6.2741.51 ▼7.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/extra-classes/modules/body.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/extra-classes/extra-classes.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extra-classes/modules/menu-selector.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: styles, class, navigation, selected, menus...

extra-classes/extra-classes.php 92% from 13 tests

The main file in "Extra Classes" v. 0.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 230 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected238 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3152244238

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity16.33
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods21100.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin