Benchmarks
Plugin footprint 82% 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.07MB] [CPU: ▼14.03ms] Passed 4 tests
An overview of server-side resources used by Rational Theme Server
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 22.91 ▼14.16 |
Dashboard /wp-admin | 3.40 ▲0.06 | 44.97 ▼13.83 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 46.67 ▼3.83 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 80.10 ▼24.30 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 34.15 ▼2.03 |
Theme Server /wp-admin/themes.php?page=rts_menu | 3.28 | 31.99 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- The plugin illegally modified 1 file (0.73KB) outside of "wp-content/plugins/rational-theme-server/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Rational Theme Server
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.11 ▼1.26 | 1.72 ▼0.15 | 40.71 ▲1.91 |
Dashboard /wp-admin | 2,201 ▲13 | 5.90 ▲0.01 | 105.69 ▲7.75 | 39.58 ▼2.84 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.04 | 43.03 ▲2.95 | 35.46 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,521 ▼7 | 21.85 ▲3.64 | 648.82 ▲50.98 | 64.88 ▲13.09 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.22 ▼0.01 | 96.73 ▼1.44 | 41.65 ▼3.32 |
Theme Server /wp-admin/themes.php?page=rts_menu | 1,543 | 6.62 | 132.33 | 59.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/themes.php?page=rts_menu
- > Warning in wp-content/plugins/rational-theme-server/rational-theme-server.php+574
Invalid argument supplied for foreach()
- 5 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=rts_menu
- > Notice in wp-content/plugins/rational-theme-server/rational-theme-server.php+425
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: download, responsive, mobile, theme, developer
rational-theme-server/rational-theme-server.php Passed 13 tests
Analyzing the main PHP file in "Rational Theme Server" version 1.0.2
75 characters long description:
Plugin for theme developers to preview and serve downloads of their themes.
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
No dangerous file extensions were detected555 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 153 | 478 |
CSS | 1 | 5 | 0 | 77 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.29% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected