Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.62ms] Passed 4 tests
Analyzing server-side resources used by WP Post Styling
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 46.54 ▲5.02 |
Dashboard /wp-admin | 3.40 ▲0.05 | 48.79 ▼12.24 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.36 ▼2.85 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.78 ▼8.15 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.14 ▲0.78 |
WP Post Styling /wp-admin/options-general.php?page=wp-post-styling/wp-post-styling.php | 3.39 | 42.41 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_post_styling_library |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
wp_post_styling_version |
jd-post-styling-screen |
post_styling_db_version |
db_upgraded |
can_compress_scripts |
post-styling-initial |
jd-post-styling-default |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Post Styling
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.40 ▲0.02 | 1.99 ▼0.12 | 43.45 ▼0.55 |
Dashboard /wp-admin | 2,202 ▲22 | 5.60 ▼0.09 | 86.29 ▼12.52 | 40.79 ▼0.45 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.02 | 41.64 ▲1.40 | 34.25 ▼1.80 |
Add New Post /wp-admin/post-new.php | 6,240 ▲4,709 | 19.16 ▼3.91 | 898.72 ▲283.16 | 65.16 ▲11.96 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.03 | 95.76 ▼8.41 | 42.67 ▼0.48 |
WP Post Styling /wp-admin/options-general.php?page=wp-post-styling/wp-post-styling.php | 1,381 | 5.24 | 132.28 | 45.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Zombie tables detected upon uninstall: 1 table
- wp_post_styling_library
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- post_styling_db_version
- db_upgraded
- widget_recent-posts
- jd-post-styling-library
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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 | 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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-styling/wp-post-styling.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-post-styling/wp-post-styling-manager.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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: Add images for these screenshots: #1 (WP Post Styling Settings Page), #2 (WP Post Styling Custom Styles Box)
wp-post-styling/wp-post-styling.php Passed 13 tests
The primary PHP file in "WP Post Styling" version 1.3.2 is used by WordPress to initiate all plugin functionality
129 characters long description:
Allows you to define custom styles for any specific post or page on your WordPress site. Helps reduce clutter in your stylesheet.
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 detected702 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 43 | 687 |
CSS | 2 | 0 | 1 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 22 | |
▷ Named functions | 22 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 4.22KB | 2.72KB | ▼ 35.58% |
screenshot-1.png | 25.78KB | 14.93KB | ▼ 42.10% |