Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.34ms] Passed 4 tests
Server-side resources used by TidyClub
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.21 ▲3.12 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.86 ▼5.40 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.00 ▲5.94 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.57 ▲1.71 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.13 ▲7.41 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_tidyclub_events |
wp_nmcron |
New WordPress options |
---|
tc_version |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for TidyClub
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.33 ▼1.04 | 1.90 ▲0.28 | 37.51 ▼11.75 |
Dashboard /wp-admin | 2,227 ▲42 | 4.86 ▼0.10 | 107.64 ▼7.20 | 41.22 ▼5.04 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.00 ▲0.00 | 40.10 ▲3.92 | 35.40 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 18.27 ▼4.80 | 612.42 ▼68.76 | 58.06 ▲3.18 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.22 ▼0.08 | 93.75 ▼8.63 | 42.02 ▼5.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_nmcron
- wp_tidyclub_events
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- tc_version
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/tidyclub/nmCron.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tidyclub/tcAdminMenu.php:332
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tidyclub/tcAdminMenu.php:332
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tidyclub/nmCron.php:28
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: tidyclub, club management
tidyclub/TidyClub.php 85% from 13 tests
"TidyClub" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("tidyclub.php" instead of "TidyClub.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin831 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 99 | 120 | 722 |
Sass | 3 | 10 | 7 | 87 |
CSS | 2 | 5 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/NM_logo_mini.png | 2.37KB | 1.61KB | ▼ 31.96% |
images/NM_logo_banner.png | 9.08KB | 4.88KB | ▼ 46.25% |
images/tidyclub_logo.png | 15.43KB | 5.46KB | ▼ 64.62% |