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.02MB] [CPU: ▼0.51ms] Passed 4 tests
A check of server-side resources used by (dp) AddThis
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.28 ▲1.35 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.19 ▼2.05 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.61 ▲0.99 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.80 ▼0.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.28 ▼0.89 |
(dp) Addthis /wp-admin/options-general.php?page=dp-addthis | 3.23 | 33.40 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
dp_addthis_config |
widget_recent-comments |
dp_addthis_custom_css |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for (dp) AddThis
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.73 ▲0.35 | 1.85 ▲0.10 | 43.34 ▲1.47 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.01 | 108.94 ▲4.41 | 42.98 ▼0.06 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.05 | 39.60 ▲5.07 | 34.91 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 18.60 ▲0.16 | 587.86 ▼75.66 | 61.09 ▲7.17 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▲0.08 | 94.69 ▼40.34 | 41.89 ▼11.67 |
(dp) Addthis /wp-admin/options-general.php?page=dp-addthis | 1,151 | 2.36 | 52.40 | 33.49 |
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
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- dp_addthis_custom_css
- can_compress_scripts
- widget_theysaidso_widget
- dp_addthis_config
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dp-addthis/dp-addthis.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== dp-addthis ===
)
dp-addthis/dp-addthis.php Passed 13 tests
"(dp) AddThis" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
137 characters long description:
Makes it even easier and better to display AddThis tools (share buttons, follow buttons and recommended contents) on your WordPress site.
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
Everything looks great! No dangerous files found in this plugin878 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 178 | 172 | 860 |
JavaScript | 1 | 4 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
PNG images were not found in this plugin