Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.59ms] Passed 4 tests
This is a short check of server-side resources used by Add To Post
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.98 ▼2.15 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.38 ▼5.82 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.82 ▲1.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.48 ▼9.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.94 ▼1.38 |
Add To Post /wp-admin/options-general.php?page=add-to-post | 3.21 | 34.57 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Add To Post: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.14 ▼0.06 | 1.71 ▼0.33 | 41.11 ▼1.81 |
Dashboard /wp-admin | 2,196 ▲16 | 5.56 ▼0.09 | 93.06 ▲4.41 | 43.76 ▲4.91 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.16 ▲0.15 | 40.15 ▲5.15 | 36.59 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.16 ▲0.28 | 664.11 ▼19.68 | 54.56 ▼13.57 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▲0.07 | 106.79 ▲2.94 | 48.70 ▲3.99 |
Add To Post /wp-admin/options-general.php?page=add-to-post | 844 | 1.99 | 30.62 | 28.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
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
Good news, no errors were detected
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
The following issues need your attention
- 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/add-to-post/add-to-post.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Plugin Activation), #2 (Plugin Settings Page), #3 (Example Usage)
add-to-post/add-to-post.php Passed 13 tests
This is the main PHP file of "Add To Post" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
Add To Post allows you to add additional content to either the start, end or both areas of your blog posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin60 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 11 | 20 | 60 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 27.79KB | 12.69KB | ▼ 54.33% |
screenshot-1.png | 26.98KB | 11.56KB | ▼ 57.17% |
screenshot-3.png | 23.46KB | 10.75KB | ▼ 54.17% |