Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.02ms] Passed 4 tests
Analyzing server-side resources used by Name: COMPANIES HOUSE INTEGRATOR
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.77 ▼0.04 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.72 ▼7.31 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.16 ▲4.52 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.44 ▼6.35 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.66 ▲1.62 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Name: COMPANIES HOUSE INTEGRATOR
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.77 ▲0.34 | 1.60 ▼0.12 | 44.19 ▼1.88 |
Dashboard /wp-admin | 2,223 ▲35 | 4.92 ▼0.94 | 95.10 ▼17.33 | 79.52 ▲34.19 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.05 ▲0.06 | 40.05 ▲3.53 | 36.44 ▲2.43 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 18.02 ▼4.92 | 646.67 ▼3.43 | 61.54 ▲12.16 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.30 ▲0.05 | 100.96 ▼3.72 | 71.07 ▲26.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/companies-house-integrator/index.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/companies-house-integrator/addComUser.php:264
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("k-b-c@outlook.com")
- Plugin Name: You should set the name of your plugin on the first line (
=== Name: COMPANIES HOUSE INTEGRATOR===
)
companies-house-integrator/index.php 92% from 13 tests
Analyzing the main PHP file in "Name: COMPANIES HOUSE INTEGRATOR" version 1.2
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("companies-house-integrator.php" instead of "index.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
There were no executable files found in this plugin558 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 127 | 79 | 558 |
PHP code Passed 2 tests
A short review 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.24 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 3.64KB | 1.47KB | ▼ 59.60% |
screenshot-1.png | 29.43KB | 14.63KB | ▼ 50.29% |