Benchmarks
Plugin footprint Passed 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.04MB] [CPU: ▼146.53ms] Passed 4 tests
Analyzing server-side resources used by Cuttr.me
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 34.58 ▼3.36 |
Dashboard /wp-admin | 3.10 ▲0.05 | 48.12 ▲10.52 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 47.44 ▼11.41 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 88.07 ▼571.48 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 35.60 ▲0.14 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Cuttr.me
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 16.35 ▲0.61 | 9.07 ▼1.99 | 47.76 ▼1.79 |
Dashboard /wp-admin | 2,987 ▲53 | 5.85 ▼0.25 | 144.17 ▼38.95 | 110.87 ▲4.53 |
Posts /wp-admin/edit.php | 2,772 ▲33 | 2.72 ▲0.02 | 66.00 ▼11.19 | 89.59 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,885 ▲304 | 19.25 ▼1.20 | 398.50 ▲2.50 | 107.22 ▲1.43 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.03 ▼0.02 | 169.58 ▼9.37 | 118.85 ▼2.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
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
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
Almost there! Just fix the following items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/cuttr-me/views/index.php
- > /wp-content/plugins/cuttr-me/libs/CuttrUtils.php
- > /wp-content/plugins/cuttr-me/cuttr.php
- > /wp-content/plugins/cuttr-me/libs/Cuttr.php
- > /wp-content/plugins/cuttr-me/libs/CuttrSettings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
cuttr-me/cuttr.php 85% from 13 tests
The primary PHP file in "Cuttr.me" version 0.17 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Make the plugin description longer than 10 characters (currently 8 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cuttr-me.php" instead of "cuttr.php")
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
Good job! No executable or dangerous file extensions detected260 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 58 | 8 | 259 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 23 | 100.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected