Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.49MB] [CPU: ▼14.83ms] Passed 4 tests
A check of server-side resources used by Postcodex Lookup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.61 ▼4.72 |
Dashboard /wp-admin | 3.53 ▲0.23 | 49.63 ▼3.58 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 49.51 ▲1.89 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.51 | 35.76 ▼52.89 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 37.52 ▲5.63 |
Server storage [IO: ▲3.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Postcodex Lookup: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 14.47 ▲0.09 | 1.82 ▼0.11 | 41.42 ▼2.73 |
Dashboard /wp-admin | 2,218 ▲30 | 4.90 ▲0.08 | 99.53 ▼17.96 | 71.84 ▲25.73 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.99 ▼0.11 | 39.65 ▲3.28 | 36.23 ▼3.76 |
Add New Post /wp-admin/post-new.php | 6,537 ▲5,004 | 22.56 ▼0.65 | 865.46 ▲195.40 | 55.85 ▼5.16 |
Media Library /wp-admin/upload.php | 1,397 ▲15 | 4.21 ▲0.05 | 96.50 ▼3.12 | 68.43 ▲24.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/postcodex-lookup/includes/autoload.php
- > /wp-content/plugins/postcodex-lookup/postcodex-lookup.php
- > /wp-content/plugins/postcodex-lookup/includes/class-index.php
- > /wp-content/plugins/postcodex-lookup/includes/class-assets.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/postcodex-lookup/includes/class-rest.php:19
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/postcodex-lookup/includes/class-rest.php on line 11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/postcodex-lookup/includes/class-rest.php on line 11
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/postcodex-lookup/includes/class-rest.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were detected
postcodex-lookup/postcodex-lookup.php 92% from 13 tests
"Postcodex Lookup" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
There were no executable files found in this plugin16,225 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 4,494 | 5,665 | 15,034 |
PHP | 9 | 290 | 616 | 1,128 |
CSS | 4 | 11 | 4 | 63 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 22.83 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 10 | 13.89% |
▷ Public methods | 62 | 86.11% |
▷ Protected methods | 10 | 13.89% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/postcodex-icon.png | 0.56KB | 0.58KB | 0.00% |