Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.09MB] [CPU: ▼8.35ms] Passed 4 tests
A check of server-side resources used by Post Raw Viewer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.58 ▼9.82 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.19 ▼5.65 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.14 ▲5.73 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.41 | 76.85 ▼20.92 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.40 ▲3.00 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Post Raw Viewer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.25 ▼0.96 | 1.62 ▼0.50 | 41.81 ▼9.27 |
Dashboard /wp-admin | 2,206 ▲15 | 5.83 ▼0.07 | 100.00 ▼0.47 | 38.72 ▼0.84 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.08 | 39.28 ▲3.04 | 35.19 ▲1.45 |
Add New Post /wp-admin/post-new.php | 6,595 ▲5,060 | 20.24 ▼2.96 | 884.37 ▲229.97 | 66.94 ▲18.95 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.01 | 97.28 ▲2.91 | 42.08 ▼4.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PRVP_HtmlUtil' not found in wp-content/plugins/post-raw-viewer/templates/postmeta.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/post-raw-viewer/templates/postdata.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-raw-viewer/post-raw-viewer.php:119
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is missing
post-raw-viewer/post-raw-viewer.php Passed 13 tests
The main PHP script in "Post Raw Viewer" version 1.0.0 is automatically included on every request by WordPress
60 characters long description:
As an Admin you can see raw post data displayed in meta box
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected173 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 63 | 127 | 158 |
CSS | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 9 | 40.91% |
▷ Public methods | 14 | 63.64% |
▷ Protected methods | 4 | 18.18% |
▷ Private methods | 4 | 18.18% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin