Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.35MB] [CPU: ▲2.73ms] Passed 4 tests
Analyzing server-side resources used by Project Pages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 39.58 ▲0.23 |
Dashboard /wp-admin | 3.70 ▲0.40 | 52.72 ▲4.31 |
Posts /wp-admin/edit.php | 3.76 ▲0.39 | 56.99 ▲7.44 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 97.86 ▲6.62 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 36.71 ▼0.24 |
Add New /wp-admin/post-new.php?post_type=projectpage | 3.78 | 58.58 |
Project Tags /wp-admin/edit-tags.php?taxonomy=projectpagetag&post_type=projectpage | 3.56 | 37.73 |
All Project Pages /wp-admin/edit.php?post_type=projectpage | 3.61 | 43.95 |
Project Pages /wp-admin/options-general.php?page=projectpages-plugin-settings | 3.53 | 34.41 |
Server storage [IO: ▲2.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
whppsettings |
Browser metrics Passed 4 tests
An overview of browser requirements for Project Pages
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲160 | 13.40 ▼0.95 | 7.90 ▲6.08 | 38.58 ▼6.06 |
Dashboard /wp-admin | 2,233 ▲59 | 5.57 ▼0.10 | 96.77 ▼11.18 | 40.08 ▲0.09 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 1.96 ▼0.06 | 39.74 ▼3.73 | 36.06 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.09 ▲0.06 | 663.84 ▼49.89 | 64.42 ▲0.42 |
Media Library /wp-admin/upload.php | 1,432 ▲29 | 4.19 ▼0.04 | 111.61 ▲7.85 | 47.39 ▲2.94 |
Add New /wp-admin/post-new.php?post_type=projectpage | 3,364 | 11.18 | 236.71 | 95.88 |
Project Tags /wp-admin/edit-tags.php?taxonomy=projectpagetag&post_type=projectpage | 1,306 | 2.12 | 27.62 | 31.42 |
All Project Pages /wp-admin/edit.php?post_type=projectpage | 1,114 | 2.03 | 35.45 | 28.14 |
Project Pages /wp-admin/options-general.php?page=projectpages-plugin-settings | 1,166 | 2.01 | 27.45 | 30.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- whppsettings
- widget_recent-comments
- widget_recent-posts
- 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)
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function set_404() on null in wp-content/plugins/project-pages/templates/single-projectpage_DEFAULT.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/project-pages/templates/single-projectpage_USETHEMESTYLES.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_archive_title() in wp-content/plugins/project-pages/templates/taxonomy-projectpage_DEFAULT.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function projectPages_get_template_part() in wp-content/plugins/project-pages/templates/projectpages-footer.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_archive_title() in wp-content/plugins/project-pages/templates/archive-projectpage_DEFAULT.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/project-pages/templates/archive-projectpage_USETHEMESTYLES.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
project-pages/ProjectPages.php 92% from 13 tests
This is the main PHP file of "Project Pages" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("project-pages.php" instead of "ProjectPages.php")
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
No dangerous file extensions were detected5,915 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 1,200 | 559 | 2,694 |
JavaScript | 7 | 347 | 249 | 1,865 |
SVG | 1 | 0 | 0 | 685 |
CSS | 6 | 41 | 54 | 443 |
PO File | 2 | 96 | 128 | 228 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 22.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.03MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/themes/default/assets/images/flags.png | 27.46KB | 29.21KB | 0.00% |
i/projectpages.png | 2.03KB | 1.59KB | ▼ 21.79% |
i/white-image.png | 2.78KB | 2.95KB | 0.00% |