Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲6.95ms] Passed 4 tests
Server-side resources used by WPCode Content Ratio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.38 ▲3.99 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.13 ▼0.81 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 93.59 ▲44.23 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 120.70 ▲26.34 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.24 ▼1.74 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
myplugin_version |
widget_recent-comments |
wpcode_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPCode Content Ratio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.47 ▲0.03 | 1.76 ▼0.05 | 43.88 ▼0.61 |
Dashboard /wp-admin | 2,236 ▲45 | 4.94 ▼0.96 | 97.66 ▼0.29 | 87.04 ▲42.20 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.01 ▲0.04 | 38.06 ▼2.25 | 33.90 ▼7.94 |
Add New Post /wp-admin/post-new.php | 1,549 ▲7 | 18.43 ▲0.08 | 696.34 ▲86.37 | 55.55 ▼15.72 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.27 ▲0.08 | 97.67 ▲0.89 | 79.85 ▲38.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wpcode-content-ratio/index.php+79
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- myplugin_version
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpcode-content-ratio/index.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (WPCode Content Ratio > Purpouse and home ratio detail), #2 (WPCode Content Ratio > Config page)
wpcode-content-ratio/index.php 92% from 13 tests
This is the main PHP file of "WPCode Content Ratio" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpcode-content-ratio.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,551 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 75 | 156 | 980 |
PO File | 2 | 321 | 463 | 560 |
CSS | 2 | 1 | 5 | 6 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/img/perc.png | 0.35KB | 0.24KB | ▼ 29.94% |
media/img/googleplus.png | 0.68KB | 0.70KB | 0.00% |
media/img/twitter.png | 0.67KB | 0.71KB | 0.00% |
media/img/icono.png | 0.72KB | 0.65KB | ▼ 9.10% |
media/img/linkedin.png | 0.95KB | 0.99KB | 0.00% |