Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼143.01ms] Passed 4 tests
A check of server-side resources used by ByTheWay Annotations for Wordpress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 36.19 ▲1.23 |
Dashboard /wp-admin | 3.08 ▲0.02 | 45.69 ▲2.89 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 40.24 ▼3.08 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 92.86 ▼566.65 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 34.82 ▼3.55 |
ByTheWay /wp-admin/options-general.php?page=btw-plugin | 2.99 | 27.62 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 3 new options
New WordPress options |
---|
btw_general |
btw_modedefaults |
btw_defaultatts |
Browser metrics Passed 4 tests
A check of browser resources used by ByTheWay Annotations for Wordpress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,808 ▲212 | 16.24 ▲0.71 | 14.22 ▲4.01 | 47.22 ▼0.88 |
Dashboard /wp-admin | 2,972 ▲38 | 5.92 ▼0.03 | 133.71 ▼5.24 | 115.26 ▼2.70 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.71 ▼0.01 | 62.94 ▼1.82 | 87.15 ▼4.97 |
Add New Post /wp-admin/post-new.php | 1,879 ▲207 | 19.18 ▲0.34 | 378.53 ▲11.22 | 103.90 ▼9.53 |
Media Library /wp-admin/upload.php | 1,812 ▲8 | 5.06 ▲0.01 | 142.10 ▲1.43 | 111.17 ▼14.10 |
ByTheWay /wp-admin/options-general.php?page=btw-plugin | 1,286 | 2.11 | 54.39 | 79.24 |
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 were found after uninstall: 3 options
- btw_defaultatts
- btw_general
- btw_modedefaults
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bytheway/btw.php:497
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== bytheway ===
)
bytheway/btw.php 92% from 13 tests
The principal PHP file in "ByTheWay Annotations for Wordpress" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bytheway.php" instead of "btw.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin369 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 101 | 96 | 328 |
CSS | 1 | 5 | 7 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 32 | |
▷ Static methods | 32 | 100.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin