Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.64ms] Passed 4 tests
Server-side resources used by Social Wall
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 40.62 ▲2.22 |
Dashboard /wp-admin | 3.38 ▲0.03 | 42.35 ▼15.50 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 45.01 ▲1.52 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.35 ▼6.80 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.08 ▲3.34 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_social_wall_posts |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Wall
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.46 ▲0.05 | 1.73 ▼0.00 | 41.60 ▲1.11 |
Dashboard /wp-admin | 2,221 ▲29 | 5.84 ▲0.87 | 96.10 ▼11.24 | 78.21 ▲36.90 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.97 ▼0.05 | 39.53 ▲2.28 | 34.60 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,680 ▲166 | 22.46 ▲4.80 | 691.37 ▲5.08 | 45.49 ▲0.40 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.24 ▲0.01 | 95.96 ▼6.48 | 63.94 ▲17.93 |
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
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_social_wall_posts
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/social-wall-wp/social-wall-wp.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WpSocialWall\\src\\api\\BaseRequest' not found in wp-content/plugins/social-wall-wp/src/api/PostsRequest.php:5
- > PHP Fatal error
Uncaught Error: Class 'WpSocialWall\\src\\api\\BaseRequest' not found in wp-content/plugins/social-wall-wp/src/api/TokensRequest.php:5
- > PHP Fatal error
Uncaught Error: Class 'WpSocialWall\\src\\api\\BaseRequest' not found in wp-content/plugins/social-wall-wp/src/api/SitesRequest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/social-wall-wp/admin/templates/SetttingsTemplate.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2 in social-wall-wp/assets to your readme.txt
social-wall-wp/social-wall-wp.php Passed 13 tests
The principal PHP file in "Social Wall" v. 1.5.1 is loaded by WordPress automatically on each request
65 characters long description:
Collects social media activity and stores them in a shared table.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin454 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 122 | 254 | 454 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 3.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 2 | 6.90% |
▷ Private methods | 3 | 10.34% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/brickwall-small.png | 2.36KB | 0.28KB | ▼ 88.19% |
admin/assets/brickwall.png | 1.39KB | 0.39KB | ▼ 71.85% |