Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼5.48ms] Passed 4 tests
A check of server-side resources used by Petje.af
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.42 | 43.34 ▲7.61 |
Dashboard /wp-admin | 3.71 ▲0.36 | 45.45 ▼12.13 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 49.28 ▲0.18 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 89.54 ▼12.21 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 36.27 ▲2.23 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
petje_af_account_page |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
petje_af_access_denied_page |
db_upgraded |
petje_af_redirect_uri_page |
widget_petje_af_main_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Petje.af: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲186 | 13.54 ▼0.71 | 8.93 ▲7.20 | 37.07 ▼3.33 |
Dashboard /wp-admin | 2,264 ▲83 | 5.59 ▼0.12 | 87.61 ▼8.81 | 35.70 ▼8.98 |
Posts /wp-admin/edit.php | 2,172 ▲72 | 2.02 ▲0.01 | 36.53 ▼0.85 | 32.20 ▼3.78 |
Add New Post /wp-admin/post-new.php | 6,277 ▲4,751 | 25.83 ▲2.37 | 898.49 ▲204.47 | 51.10 ▼0.79 |
Media Library /wp-admin/upload.php | 1,471 ▲71 | 4.24 ▲0.03 | 97.53 ▲0.24 | 42.46 ▼1.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 10 options
- widget_petje_af_main_widget
- widget_theysaidso_widget
- petje_af_redirect_uri_page
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- petje_af_access_denied_page
- petje_af_account_page
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/petje-af/includes/widgets/petje-af-main-widget.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/petje-af/admin/partials/petje-af-admin-display.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/petje-af/admin/partials/petje-af-meta-box.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The Petje.af admin WordPress admin area where you should fill in your Client ID and Client secret.) image missing
petje-af/petje-af.php Passed 13 tests
The main PHP file in "Petje.af" ver. 2.1.8 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
The official Petje.af WordPress plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,264 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 558 | 1,640 | 1,668 |
PO File | 1 | 83 | 580 | 207 |
CSS | 3 | 24 | 12 | 183 |
JavaScript | 4 | 33 | 37 | 181 |
JSON | 1 | 0 | 0 | 13 |
SVG | 1 | 0 | 1 | 10 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 9 | 7.20% |
▷ Public methods | 80 | 64.00% |
▷ Protected methods | 40 | 32.00% |
▷ Private methods | 5 | 4.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/petjeaf.png | 13.70KB | 6.11KB | ▼ 55.41% |