Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.45ms] Passed 4 tests
This is a short check of server-side resources used by The Prospect Farmer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.07 ▼0.78 |
Dashboard /wp-admin | 3.35 ▲0.01 | 46.31 ▼17.80 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 52.21 ▼6.18 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.53 ▼13.04 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.61 ▲2.17 |
The Prospect Farmer /wp-admin/options-general.php?page=theprospectfarmer | 3.24 | 35.05 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theprospectfarmer_flags |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
The Prospect Farmer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.25 ▼0.10 | 1.81 ▼0.32 | 42.98 ▼0.88 |
Dashboard /wp-admin | 2,202 ▲22 | 5.61 ▼0.05 | 87.54 ▼3.39 | 39.10 ▼0.57 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.05 | 35.00 ▼7.73 | 38.44 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.45 ▲0.48 | 692.55 ▲36.33 | 54.56 ▼2.75 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▼0.06 | 104.22 ▼7.15 | 46.40 ▼0.49 |
The Prospect Farmer /wp-admin/options-general.php?page=theprospectfarmer | 927 | 2.16 | 28.62 | 41.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- theprospectfarmer_flags
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/the-prospect-farmer/theprospectfarmer.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: You are using too many tags: 20 tag instead of maximum 10
the-prospect-farmer/theprospectfarmer.php 92% from 13 tests
The primary PHP file in "The Prospect Farmer" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("the-prospect-farmer.php" instead of "theprospectfarmer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin728 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 116 | 40 | 418 |
CSS | 1 | 8 | 7 | 186 |
JavaScript | 2 | 17 | 6 | 77 |
PO File | 1 | 16 | 16 | 47 |
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.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
8 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/shortcoder.png | 1.24KB | 1.46KB | 0.00% |
images/shortcoder-2.png | 0.46KB | 0.38KB | ▼ 18.07% |
images/aw.png | 0.43KB | 0.30KB | ▼ 30.30% |
images/grey-bg.png | 0.09KB | 0.15KB | 0.00% |
images/toggle-arrow.png | 0.25KB | 0.15KB | ▼ 42.08% |