Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼11.40ms] Passed 4 tests
Server-side resources used by Smart Attachment Page Remove
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.05 ▼11.02 |
Dashboard /wp-admin | 3.40 ▲0.06 | 50.04 ▼13.52 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 50.55 ▼1.73 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.71 ▼19.32 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.53 ▲4.40 |
Attachment Pages /wp-admin/options-general.php?page=smartattachmentpageremovesettings | 3.23 | 33.76 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
smart_attachment_page_remove_data |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Smart Attachment Page Remove: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.30 ▼0.14 | 1.68 ▼0.11 | 43.31 ▲3.20 |
Dashboard /wp-admin | 2,196 ▲22 | 5.64 ▲0.07 | 88.34 ▼0.70 | 37.88 ▼7.46 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.04 ▼0.00 | 36.95 ▼3.49 | 34.58 ▼5.57 |
Add New Post /wp-admin/post-new.php | 1,534 ▼12 | 23.16 ▼0.06 | 662.40 ▼7.07 | 59.30 ▲0.66 |
Media Library /wp-admin/upload.php | 1,395 ▼8 | 4.20 ▲0.04 | 98.43 ▼13.48 | 43.43 ▼5.61 |
Attachment Pages /wp-admin/options-general.php?page=smartattachmentpageremovesettings | 845 | 2.24 | 28.77 | 36.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/smart-attachment-page-remove/inc/ppf/ppf-plugin.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/smart-attachment-page-remove/inc/ppf/ppf-settings.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Plugin' not found in wp-content/plugins/smart-attachment-page-remove/inc/ppf/ppf-plugin-addon.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/smart-attachment-page-remove/inc/ppf/ppf-subclass.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/smart-attachment-page-remove/inc/ppf/ppf-admin.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: spam, attachment pages, attachment page, classicpress, antispam comment spam
smart-attachment-page-remove/smart-attachment-page-remove.php Passed 13 tests
The primary PHP file in "Smart Attachment Page Remove" version 4.0.3 is used by WordPress to initiate all plugin functionality
49 characters long description:
Completely remove Attachment Pages from your Blog
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 plugin1,065 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 680 | 1,029 | 739 |
CSS | 1 | 51 | 0 | 231 |
JavaScript | 2 | 35 | 22 | 90 |
SVG | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 6 | 66.67% |
▷ Concrete classes | 3 | 33.33% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 1 | 1.14% |
▷ Public methods | 76 | 86.36% |
▷ Protected methods | 5 | 5.68% |
▷ Private methods | 7 | 7.95% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected