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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.68ms] Passed 4 tests
An overview of server-side resources used by Devranter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.81 ▼7.16 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.87 ▼6.94 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.89 ▼1.46 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 90.76 ▼3.16 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.12 ▼0.61 |
Devranter /wp-admin/options-general.php?page=devranter-options | 3.24 | 27.49 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/devranter/" and "wp-content/uploads/"
- (new file) wp-content/plugins/devranter_templates/devranter.custom.css
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_devranter_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Devranter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.30 ▼1.26 | 4.66 ▲2.64 | 37.70 ▼8.11 |
Dashboard /wp-admin | 2,210 ▲25 | 4.88 ▼0.96 | 110.26 ▼6.47 | 43.29 ▼0.29 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.05 ▲0.05 | 38.80 ▲4.20 | 34.77 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,517 ▼22 | 17.73 ▼5.70 | 661.28 ▼22.18 | 57.62 ▲2.60 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.18 ▲0.00 | 114.97 ▼5.14 | 44.58 ▼3.47 |
Devranter /wp-admin/options-general.php?page=devranter-options | 898 | 2.06 | 25.69 | 32.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_devranter_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/devranter/devranter.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/devranter/devranter-admin.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: devrant, developer, quotes
devranter/devranter.php Passed 13 tests
"Devranter" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Display awesome devrant rants. This is an UNOFFICIAL plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected321 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 47 | 100 | 271 |
CSS | 1 | 15 | 10 | 50 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 8 | 66.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin