74% easy-classes

Code Review | Easy Classes

WordPress plugin Easy Classes scored74%from 54 tests.

About plugin

  • Plugin page: easy-classes
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2013
  • Latest release: Oct 25, 2013
  • Number of updates: 19
  • Update frequency: every 0.7 days
  • Top authors: melinadonati (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,027 total downloads

Benchmarks

Plugin footprint 65% 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.13MB] [CPU: ▼2.63ms] Passed 4 tests

This is a short check of server-side resources used by Easy Classes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.66 ▼2.55
Dashboard /wp-admin3.43 ▲0.1359.32 ▲1.97
Posts /wp-admin/edit.php3.48 ▲0.1349.64 ▼0.15
Add New Post /wp-admin/post-new.php6.01 ▲0.1388.78 ▼9.80
Media Library /wp-admin/upload.php3.36 ▲0.1344.00 ▲5.42
Starting time /wp-admin/edit-tags.php?taxonomy=beginning&post_type=easyclass3.3538.94
Ending time /wp-admin/edit-tags.php?taxonomy=ending&post_type=easyclass3.3535.27
Day /wp-admin/edit-tags.php?taxonomy=day&post_type=easyclass3.3537.10
Place /wp-admin/edit-tags.php?taxonomy=place&post_type=easyclass3.3535.62
Classes /wp-admin/edit.php?post_type=easyclass3.4036.19
Room /wp-admin/edit-tags.php?taxonomy=room&post_type=easyclass3.3536.11
Teachers /wp-admin/edit.php?post_type=teachers3.4039.65
Teacher /wp-admin/edit-tags.php?taxonomy=teacher&post_type=easyclass3.3534.28
Subject /wp-admin/edit-tags.php?taxonomy=subject&post_type=easyclass3.3534.62
Level /wp-admin/edit-tags.php?taxonomy=level&post_type=easyclass3.3535.39

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Easy Classes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15913.12 ▼1.232.54 ▲0.7054.25 ▲8.16
Dashboard /wp-admin2,305 ▲995.81 ▲0.76129.35 ▲15.3675.06 ▲38.28
Posts /wp-admin/edit.php2,196 ▲932.02 ▼0.0437.81 ▲1.6634.18 ▼1.30
Add New Post /wp-admin/post-new.php1,762 ▲20822.18 ▼1.35696.29 ▲5.3538.60 ▼34.83
Media Library /wp-admin/upload.php1,502 ▲1024.24 ▲0.06111.04 ▼1.1678.12 ▲31.62
Starting time /wp-admin/edit-tags.php?taxonomy=beginning&post_type=easyclass1,3762.1530.8837.79
Ending time /wp-admin/edit-tags.php?taxonomy=ending&post_type=easyclass1,3732.1528.4434.68
Day /wp-admin/edit-tags.php?taxonomy=day&post_type=easyclass1,3702.1525.0833.47
Place /wp-admin/edit-tags.php?taxonomy=place&post_type=easyclass1,3732.1526.2636.75
Classes /wp-admin/edit.php?post_type=easyclass1,2051.9432.5733.90
Room /wp-admin/edit-tags.php?taxonomy=room&post_type=easyclass1,3732.1525.8133.27
Teachers /wp-admin/edit.php?post_type=teachers1,2021.9332.9032.38
Teacher /wp-admin/edit-tags.php?taxonomy=teacher&post_type=easyclass1,3732.1527.3631.36
Subject /wp-admin/edit-tags.php?taxonomy=subject&post_type=easyclass1,3792.3025.5632.32
Level /wp-admin/edit-tags.php?taxonomy=level&post_type=easyclass1,3702.1525.5533.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall correctly, leaving 10 files (0.11MB) in the plugin directory
    • (new file) languages/easyclasses-fr_FR.po
    • (new file) images/schedule.png
    • (new file) images/classes.png
    • (new file) schedule.css
    • (new file) languages/easyclasses-fr_FR.mo
    • (new file) schedule.php
    • (new file) images/teachers.png
    • (new file) easy-classes.php
    • (new file) uninstall.php
    • (new file) readme.txt
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-classes/easy-classes.php:30

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

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

The primary PHP file in "Easy Classes" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected1,498 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3831251,162
PO File197525215
CSS1200121

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/classes.png0.91KB0.74KB▼ 17.98%
images/schedule.png3.16KB0.42KB▼ 86.82%
images/teachers.png0.90KB0.71KB▼ 21.24%