Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/cutup-machine/cutupmachine.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; CutUpMachine has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼53.14ms] Passed 4 tests
A check of server-side resources used by CutUp Machine
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.70 ▼35.56 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.36 ▼45.05 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 5.34 ▼42.02 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.66 ▼89.94 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.67 ▼26.66 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_cutupmachine |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
CutUp Machine: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.34 ▼0.96 | 1.75 ▼0.03 | 43.30 ▼5.37 |
Dashboard /wp-admin | 2,209 ▲18 | 6.06 ▲1.17 | 104.58 ▲2.22 | 40.05 ▼4.43 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.97 ▼0.03 | 35.34 ▼2.86 | 37.09 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.15 ▼5.10 | 602.14 ▼64.26 | 68.84 ▲16.81 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.24 ▲0.03 | 97.29 ▼3.16 | 41.45 ▼0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/cutup-machine/cutupmachine.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; CutUpMachine has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_cutupmachine
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cutup-machine/cutupmachine.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (CutUp Machine widget in sidebar)
- Requires at least: The plugin version is formatted incorrectly
- Tested up to: The plugin version is formatted incorrectly
cutup-machine/cutupmachine.php 85% from 13 tests
The principal PHP file in "CutUp Machine" v. 1... is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("cutup-machine.php" instead of "cutupmachine.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin105 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 2 | 0 | 61 |
PHP | 1 | 20 | 21 | 44 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 47.78KB | 17.37KB | ▼ 63.63% |