Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.12ms] Passed 4 tests
Analyzing server-side resources used by Post Admin Social Stats
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.93 ▼4.08 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.27 ▼6.42 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.54 ▼4.10 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.05 ▼17.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.22 ▲3.47 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Admin Social Stats
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,090 ▲355 | 19.75 ▲5.17 | 1.76 ▼0.05 | 40.64 ▼8.06 |
Dashboard /wp-admin | 2,505 ▲314 | 11.01 ▲6.09 | 363.71 ▲255.14 | 53.88 ▲10.11 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.06 ▲0.07 | 35.12 ▼8.68 | 32.23 ▼1.89 |
Add New Post /wp-admin/post-new.php | 6,483 ▲4,969 | 25.49 ▲8.05 | 1,083.06 ▲461.30 | 48.91 ▼0.18 |
Media Library /wp-admin/upload.php | 1,387 ▼4 | 4.23 ▲0.02 | 99.42 ▲1.57 | 46.14 ▲2.98 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/post-admin-social-stats/postpage.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/post-admin-social-stats/post-admin-social-stats.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/post-admin-social-stats/dashboard.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
post-admin-social-stats/post-admin-social-stats.php Passed 13 tests
Analyzing the main PHP file in "Post Admin Social Stats" version 1.0.6
62 characters long description:
Add social stats to the Edit Post page of the Wordpress admin.
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
No dangerous file extensions were detected124 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 22 | 32 | 121 |
CSS | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/gearside.png | 1.80KB | 0.88KB | ▼ 51.22% |