Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼300.59ms] Passed 4 tests
Server-side resources used by ThemeForest-Check
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.83 ▼37.40 |
Dashboard /wp-admin | 3.41 ▲0.01 | 38.63 ▲5.80 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 42.84 ▼0.12 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 92.76 ▼1,169.94 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 28.62 ▲5.11 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for ThemeForest-Check
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.66 ▲0.79 | 6.24 ▲0.34 | 2.75 ▲0.70 |
Dashboard /wp-admin | 2,895 ▲38 | 6.13 ▼0.03 | 113.53 ▼10.25 | 155.68 ▼6.95 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.24 ▼0.01 | 63.27 ▼0.51 | 148.25 ▲5.69 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 20.80 ▲4.62 | 415.10 ▼12.94 | 208.06 ▲5.96 |
Media Library /wp-admin/upload.php | 1,701 ▲6 | 5.50 ▼0.03 | 141.33 ▲2.09 | 189.06 ▼56.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 | 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/themeforest-check/checks/filenames.php:2
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/themeforest-check/checks/malware.php:2
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/themeforest-check/checks/admin_menu.php:2
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/themeforest-check/checks/badthings.php:2
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/themeforest-check/checks/customs.php:3
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
themeforest-check/themeforest-check.php 85% from 13 tests
The main PHP script in "ThemeForest-Check" version 1.0.4 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected266 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 81 | 118 | 254 |
JavaScript | 1 | 5 | 0 | 9 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/themeforest-logo-mini.png | 1.51KB | 1.22KB | ▼ 19.63% |