Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.08ms] Passed 4 tests
Server-side resources used by Share Old Post LITE
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.76 ▼3.61 |
Dashboard /wp-admin | 3.41 ▲0.06 | 54.17 ▼13.95 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.62 ▼4.32 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 379.66 ▲272.42 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 43.26 ▲5.57 |
Facebook /wp-admin/admin.php?page=shareoldpost | 3.27 | 36.05 |
Twitter /wp-admin/admin.php?page=easypublisher_twitter | 3.27 | 31.22 |
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: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Share Old Post LITE
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.35 ▲0.17 | 1.83 ▲0.10 | 45.52 ▲4.20 |
Dashboard /wp-admin | 2,225 ▲45 | 5.61 ▲0.04 | 95.34 ▲4.26 | 43.82 ▼1.14 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.99 ▲0.03 | 33.38 ▼4.61 | 36.08 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 22.99 ▼0.04 | 659.72 ▼22.21 | 47.99 ▼15.36 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.20 ▲0.03 | 96.44 ▼16.59 | 44.95 ▼0.70 |
Facebook /wp-admin/admin.php?page=shareoldpost | 1,061 | 1.99 | 24.92 | 31.44 |
Twitter /wp-admin/admin.php?page=easypublisher_twitter | 1,116 | 1.99 | 22.94 | 30.66 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=easypublisher_twitter
- > Notice in wp-content/plugins/wp-share-old-post-lite/action_twitter.php+147
Undefined variable: data
- > GET request to /wp-admin/admin.php?page=shareoldpost
- > Notice in wp-content/plugins/wp-share-old-post-lite/action_facebook.php+117
Undefined index: state
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=easypublisher_twitter
- > Notice in wp-content/plugins/wp-share-old-post-lite/action_twitter.php+181
Undefined index: category
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-share-old-post-lite/wp-share-old-post-lite.php:22
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Contributors: Plugin contributors field is missing
wp-share-old-post-lite/wp-share-old-post-lite.php 92% from 13 tests
The main PHP script in "Share Old Post LITE" version 1.2 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 256 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin362 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 305 | 5 | 284 |
CSS | 1 | 16 | 0 | 77 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
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 | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/WP-ShareOld_PagesPlugin.png | 11.45KB | 4.37KB | ▼ 61.87% |
img/twitter.png | 1.47KB | 1.50KB | 0.00% |
img/Bouton_LiteSOP1.png | 5.11KB | 1.97KB | ▼ 61.49% |
img/Google-plus-icon.png | 0.65KB | 0.66KB | 0.00% |
img/facebook.png | 1.43KB | 1.58KB | 0.00% |