Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼293.40ms] Passed 4 tests
Analyzing server-side resources used by Add Shortcodes Actions And Filters
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.09 | 61.32 ▲13.76 |
Dashboard /wp-admin | 3.45 ▲0.04 | 37.04 ▲3.25 |
Posts /wp-admin/edit.php | 3.67 ▲0.04 | 41.01 ▲4.83 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 98.10 ▼1,184.17 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 27.03 ▲2.51 |
Shortcodes, Actions and Filters /wp-admin/tools.php?page=ShortcodesActionsFilters | 3.43 | 29.01 |
Shortcodes, Actions and Filters Import/Export /wp-admin/admin.php?page=ShortcodesActionsFiltersImpExp | 3.34 | 23.44 |
Shortcodes, Actions and Filters Settings /wp-admin/admin.php?page=ShortcodesActionsFiltersSettings | 3.35 | 23.09 |
Server storage [IO: ▲1.96MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 162 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_addactionsandfilters_plugin_usercode |
New WordPress options |
---|
AddActionsAndFilters_Plugin__version |
AddActionsAndFilters_Plugin__installed |
Browser metrics Passed 4 tests
A check of browser resources used by Add Shortcodes Actions And Filters
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲44 | 15.60 ▼0.06 | 6.32 ▲0.51 | 3.05 ▲0.73 |
Dashboard /wp-admin | 2,880 ▲22 | 6.10 ▼0.18 | 119.70 ▼17.76 | 152.98 ▼8.24 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▲0.01 | 65.99 ▲1.72 | 141.05 ▲1.04 |
Add New Post /wp-admin/post-new.php | 1,755 ▲95 | 21.49 ▲4.79 | 442.31 ▲23.29 | 155.45 ▼2.00 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.51 ▼0.02 | 144.88 ▼0.58 | 190.46 ▲1.07 |
Shortcodes, Actions and Filters /wp-admin/tools.php?page=ShortcodesActionsFilters | 1,346 | 2.62 | 54.37 | 91.04 |
Shortcodes, Actions and Filters Import/Export /wp-admin/admin.php?page=ShortcodesActionsFiltersImpExp | 1,048 | 2.40 | 54.77 | 98.73 |
Shortcodes, Actions and Filters Settings /wp-admin/admin.php?page=ShortcodesActionsFiltersSettings | 1,180 | 2.41 | 55.24 | 117.73 |
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
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_addactionsandfilters_plugin_usercode
- The uninstall procedure has failed, leaving 2 options in the database
- AddActionsAndFilters_Plugin__version
- AddActionsAndFilters_Plugin__installed
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/add-actions-and-filters/AddActionsAndFilters_CodeListTable.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/add-actions-and-filters/add-actions-and-filters.php:67
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/add-actions-and-filters/AddActionsAndFilters_CodeListTable.php on line 26
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/add-actions-and-filters/AddActionsAndFilters_CodeListTable.php on line 26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Dashboard page for code listings), #2 (Dashboard page for editing a shortcode), #3 (Dashboard page for editing a filter), #4 (Dashboard page for editing an action), #5 (Dashboard page for import/export to/from file and import from Shortcode Exec PHP)
add-actions-and-filters/add-actions-and-filters.php 92% from 13 tests
The primary PHP file in "Add Shortcodes Actions And Filters" version 2.0.9 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 304 characters long)
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
No dangerous file extensions were detected26,032 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 71 | 2,136 | 1,990 | 21,993 |
CSS | 55 | 360 | 231 | 2,044 |
PHP | 20 | 477 | 1,078 | 1,995 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 176 | |
▷ Static methods | 3 | 1.70% |
▷ Public methods | 150 | 85.23% |
▷ Protected methods | 26 | 14.77% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.72MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 128.10KB | 38.28KB | ▼ 70.11% |
img/import-export.png | 1.67KB | 1.34KB | ▼ 19.63% |
screenshot-5.png | 142.80KB | 39.95KB | ▼ 72.02% |
img/icon-20x20.png | 0.78KB | 0.65KB | ▼ 16.38% |
screenshot-4.png | 171.21KB | 47.99KB | ▼ 71.97% |