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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼141.69ms] Passed 4 tests
A check of server-side resources used by Theme Mentor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 32.27 ▲11.64 |
Dashboard /wp-admin | 3.09 ▲0.03 | 41.73 ▼0.74 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 44.03 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 86.35 ▼562.71 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.27 ▼2.36 |
Theme Mentor /wp-admin/themes.php?page=theme_mentor | 3.02 | 29.22 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Theme Mentor: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲102 | 15.85 ▼0.16 | 8.31 ▼0.09 | 46.98 ▲0.52 |
Dashboard /wp-admin | 2,972 ▲35 | 5.87 ▼0.28 | 137.24 ▼10.11 | 111.94 ▼3.52 |
Posts /wp-admin/edit.php | 2,741 ▲5 | 2.70 ▲0.01 | 68.18 ▲2.29 | 88.47 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,675 ▲3 | 18.76 ▲0.00 | 371.20 ▲20.85 | 103.79 ▼14.51 |
Media Library /wp-admin/upload.php | 1,818 ▲8 | 5.00 ▲0.00 | 153.55 ▲6.49 | 121.93 ▲2.31 |
Theme Mentor /wp-admin/themes.php?page=theme_mentor | 1,070 | 2.09 | 53.43 | 72.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'Theme_Mentor_Executor' not found in wp-content/plugins/theme-mentor/inc/complex/footer-validations.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Theme_Mentor_Executor' not found in wp-content/plugins/theme-mentor/inc/complex/header-validations.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/theme-mentor/theme-mentor.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/theme-mentor/inc/templates/admin-template.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Screenshots: Please describe screenshot #2 in theme-mentor/assets to your readme.txt
theme-mentor/theme-mentor.php Passed 13 tests
The main file in "Theme Mentor" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
90 characters long description:
Theme Mentor is a cousing of the Theme-Check plugin getting deeper into the code analysis.
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 plugin302 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 90 | 196 | 273 |
CSS | 1 | 0 | 0 | 17 |
Markdown | 1 | 4 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 13.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 169.58KB | 58.11KB | ▼ 65.73% |
screenshot-2.png | 61.88KB | 22.58KB | ▼ 63.51% |