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
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▲1.54ms] Passed 4 tests
Server-side resources used by ClassicPlus To Enable Classic Functions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 41.82 ▼0.42 |
Dashboard /wp-admin | 3.69 ▲0.38 | 51.38 ▼2.33 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 53.56 ▲5.45 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 97.30 ▲7.23 |
Media Library /wp-admin/upload.php | 3.52 ▲0.30 | 37.31 ▲3.45 |
ClassicPlus /wp-admin/options-general.php?page=classicplus | 3.52 | 39.76 |
Server storage [IO: ▲3.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 10 new options
New WordPress options |
---|
classicplus_smtp |
classicplus_content |
widget_theysaidso_widget |
theysaidso_admin_options |
classicplus_login |
classicplus_basics |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ClassicPlus To Enable Classic Functions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲229 | 15.02 ▲0.44 | 1.75 ▼0.24 | 42.46 ▼9.44 |
Dashboard /wp-admin | 2,366 ▲181 | 6.64 ▲0.74 | 132.27 ▲17.36 | 41.80 ▼3.44 |
Posts /wp-admin/edit.php | 2,275 ▲186 | 3.59 ▲1.54 | 57.57 ▲21.01 | 34.96 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,540 ▲20 | 18.53 ▼4.67 | 616.14 ▼7.65 | 37.49 ▼26.53 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.32 ▲0.12 | 80.18 ▼17.99 | 39.83 ▼1.79 |
ClassicPlus /wp-admin/options-general.php?page=classicplus | 1,402 | 3.58 | 45.37 | 30.65 |
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
- This plugin does not fully uninstall, leaving 10 options in the database
- classicplus_login
- classicplus_content
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- classicplus_basics
- theysaidso_admin_options
- classicplus_smtp
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/classic-plus/includes/class.frontend.php:9
- > PHP Fatal error
Uncaught Error: Class 'ClassicPlus_Settings' not found in wp-content/plugins/classic-plus/includes/class.classic.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/classic-plus/includes/class.post.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_doing_ajax() in wp-content/plugins/classic-plus/includes/class.ajax.php:7
- > PHP Fatal error
Uncaught Error: Class 'ClassicPlus_Settings' not found in wp-content/plugins/classic-plus/includes/class.document.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/classic-plus/includes/class.settings.php:235
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/classic-plus/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'ClassicPlus_Settings' not found in wp-content/plugins/classic-plus/includes/class.gravatar.php:9
- > PHP Fatal error
Uncaught Error: Class 'ClassicPlus_Settings' not found in wp-content/plugins/classic-plus/includes/class.email.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/classic-plus/views/documents.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: limit, link manager, classic, highlight, demo...
classic-plus/classic-plus.php 92% from 13 tests
This is the main PHP file of "ClassicPlus To Enable Classic Functions" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected11,742 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 8,954 |
PHP | 14 | 311 | 199 | 1,435 |
CSS | 12 | 206 | 97 | 1,110 |
JavaScript | 6 | 28 | 10 | 243 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 59 | 67.82% |
▷ Public methods | 87 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 19.59KB | 8.50KB | ▼ 56.60% |
assets/screenshot-2.png | 25.18KB | 11.37KB | ▼ 54.86% |
assets/icon-256x256.png | 2.94KB | 2.56KB | ▼ 12.94% |
assets/screenshot-4.png | 28.36KB | 11.14KB | ▼ 60.71% |
assets/screenshot-3.png | 13.01KB | 5.71KB | ▼ 56.15% |