Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼2.76ms] Passed 4 tests
This is a short check of server-side resources used by Fittest plugin for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 40.16 ▲2.60 |
Dashboard /wp-admin | 3.54 ▲0.23 | 45.89 ▼3.40 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 52.16 ▼0.67 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 93.38 ▼4.07 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.63 ▼2.91 |
Add New /wp-admin/post-new.php?post_type=fittest_experiment | 4.84 | 54.85 |
Experiments /wp-admin/edit.php?post_type=fittest_experiment | 3.51 | 45.43 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Fittest plugin for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 14.80 ▲0.80 | 1.75 ▲0.15 | 43.37 ▲0.52 |
Dashboard /wp-admin | 2,234 ▲43 | 5.86 ▼0.06 | 108.30 ▲6.53 | 39.55 ▼5.96 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.05 ▲0.05 | 40.48 ▲1.09 | 35.01 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.23 ▲0.22 | 643.02 ▼11.59 | 54.82 ▲0.95 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.21 ▼0.03 | 94.57 ▼17.61 | 42.12 ▼8.06 |
Add New /wp-admin/post-new.php?post_type=fittest_experiment | 1,482 | 2.53 | 49.12 | 50.44 |
Experiments /wp-admin/edit.php?post_type=fittest_experiment | 1,081 | 1.96 | 32.82 | 29.60 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fittest/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/batch_float.php
- 242× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Filter' not found in wp-content/plugins/fittest/vendor/twig/twig/lib/Twig/Node/Expression/Filter/Default.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/fittest/vendor/twig/twig/test/Twig/Tests/Node/Expression/Binary/AddTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/fittest/vendor/twig/twig/lib/Twig/Node/Expression/Binary/FloorDiv.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/fittest/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Mul.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Twig_LoaderInterface' not found in wp-content/plugins/fittest/vendor/twig/twig/lib/Twig/Loader/Chain.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/fittest/vendor/twig/twig/lib/Twig/Node/Expression/Conditional.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/fittest/vendor/twig/twig/test/Twig/Tests/Node/SandboxedPrintTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/fittest/vendor/twig/twig/test/Twig/Tests/escapingTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/fittest/vendor/illuminate/support/Illuminate/Support/Facades/Crypt.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/fittest/vendor/twig/twig/test/Twig/Tests/Loader/FilesystemTest.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Setting up an experiment), #2 (Adding the experiment to a menu), #3 (Experiment showing up in the menu)
fittest/index.php 92% from 13 tests
The main file in "Fittest plugin for WordPress" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fittest.php" instead of "index.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 plugin19,341 lines of code in 434 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 312 | 3,463 | 7,695 | 14,720 |
reStructuredText | 88 | 2,176 | 1,920 | 3,071 |
C | 1 | 166 | 146 | 791 |
JSON | 6 | 0 | 0 | 324 |
CSS | 2 | 4 | 1 | 179 |
HTML | 14 | 7 | 2 | 113 |
XML | 3 | 2 | 0 | 59 |
JavaScript | 1 | 2 | 0 | 28 |
YAML | 2 | 7 | 0 | 25 |
C/C++ Header | 1 | 7 | 13 | 11 |
SVG | 1 | 0 | 0 | 11 |
m4 | 1 | 2 | 1 | 5 |
Twig | 2 | 2 | 0 | 4 |
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.31 |
Average class complexity | 4.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 24 | |
Traits | 0 | |
Classes | 300 | |
▷ Abstract classes | 19 | 6.33% |
▷ Concrete classes | 281 | 93.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,365 | |
▷ Static methods | 115 | 8.42% |
▷ Public methods | 1,207 | 88.42% |
▷ Protected methods | 152 | 11.14% |
▷ Private methods | 6 | 0.44% |
Functions | 114 | |
▷ Named functions | 104 | 91.23% |
▷ Anonymous functions | 10 | 8.77% |
Constants | 38 | |
▷ Global constants | 1 | 2.63% |
▷ Class constants | 37 | 97.37% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 67.19KB | 29.48KB | ▼ 56.13% |
screenshot-3.png | 64.32KB | 28.38KB | ▼ 55.88% |
screenshot-2.png | 86.58KB | 39.20KB | ▼ 54.72% |