Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲3.84ms] Passed 4 tests
This is a short check of server-side resources used by Style Genre
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.60 ▲7.08 |
Dashboard /wp-admin | 3.32 ▲0.02 | 62.51 ▲16.19 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.39 ▲1.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 96.01 ▲0.39 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.24 ▲6.32 |
Style Genre /wp-admin/options-general.php?page=style-genre-setting-admin | 3.21 | 35.10 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
style_genre_option |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Style Genre: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.28 | 1.73 ▲0.16 | 44.99 ▲3.67 |
Dashboard /wp-admin | 2,199 ▲27 | 5.61 ▼0.11 | 96.00 ▼1.97 | 42.73 ▲1.87 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.00 ▲0.01 | 33.05 ▼2.72 | 35.42 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.38 ▲5.15 | 682.49 ▲57.94 | 62.82 ▼7.01 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.22 ▼0.17 | 93.16 ▼5.28 | 45.93 ▲1.72 |
Style Genre /wp-admin/options-general.php?page=style-genre-setting-admin | 847 | 2.00 | 23.18 | 27.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- style_genre_option
- db_upgraded
- widget_theysaidso_widget
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/style-genre/class.style-genre-admin.php:205
- > 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 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: gettext, inclusion, translation
style-genre/style-genre.php 77% from 13 tests
The entry point to "Style Genre" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.2")
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "5.2")
- 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin184 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 72 | 120 | 156 |
PO File | 1 | 8 | 5 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin