Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼11.20ms] Passed 4 tests
Analyzing server-side resources used by Findwords
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.38 ▼1.59 |
Dashboard /wp-admin | 3.35 ▼0.00 | 46.05 ▼12.80 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.11 ▼7.03 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 80.90 ▼23.37 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.49 ▲1.22 |
Findwords Options /wp-admin/options-general.php?page=FindWordsplugin_options | 3.24 | 28.69 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
FindWordsplugin-Settings |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Findwords
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.75 ▼0.64 | 11.24 ▲9.53 | 41.96 ▼6.55 |
Dashboard /wp-admin | 2,210 ▲19 | 5.83 ▲0.95 | 95.47 ▼6.25 | 39.33 ▲0.96 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.05 ▲0.04 | 36.92 ▲1.95 | 32.81 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.15 ▼0.01 | 675.36 ▲79.93 | 64.11 ▲12.69 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.17 ▼0.03 | 95.88 ▼4.10 | 41.76 ▼1.97 |
Findwords Options /wp-admin/options-general.php?page=FindWordsplugin_options | 790 | 2.03 | 23.80 | 25.50 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/findwords/findwords.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tested up to: The plugin version is formatted incorrectly
- Requires at least: The plugin version is formatted incorrectly
findwords/findwords.php Passed 13 tests
"Findwords" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Plugin for showing all occurances of a word in the blog
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
Good job! No executable or dangerous file extensions detected7,206 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 640 | 273 | 6,624 |
HTML | 1 | 28 | 3 | 297 |
PHP | 3 | 66 | 29 | 210 |
CSS | 1 | 12 | 0 | 57 |
JSON | 1 | 0 | 0 | 14 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/next-arrow-left.png | 2.63KB | 2.00KB | ▼ 24.11% |
css/next-arrow-right.png | 2.65KB | 1.94KB | ▼ 27.01% |