Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲2.23ms] Passed 4 tests
This is a short check of server-side resources used by Easy Photo Album
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.64 ▲0.51 |
Dashboard /wp-admin | 3.44 ▲0.13 | 54.27 ▲0.55 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 55.41 ▲2.71 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 102.88 ▲5.15 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 41.08 ▲6.78 |
Photo Albums /wp-admin/edit.php?post_type=easy-photo-album | 3.42 | 46.83 |
Shelves /wp-admin/edit-tags.php?taxonomy=shelf&post_type=easy-photo-album | 3.50 | 44.36 |
Easy Photo Album /wp-admin/options-general.php?page=epa-settings | 3.29 | 32.83 |
Add New /wp-admin/post-new.php?post_type=easy-photo-album | 3.46 | 54.46 |
Server storage [IO: ▲1.63MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: no new tables, 7 new options
New WordPress options |
---|
EasyPhotoAlbum |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Photo Album
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,043 ▲297 | 14.20 ▼0.16 | 10.30 ▲8.33 | 61.78 ▲13.07 |
Dashboard /wp-admin | 2,244 ▲56 | 5.83 ▲0.97 | 101.80 ▼16.85 | 40.45 ▼5.98 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.05 ▲0.04 | 40.22 ▲1.58 | 39.69 ▲4.03 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 23.41 ▲0.67 | 597.52 ▼75.37 | 50.18 ▼8.97 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.26 ▲0.07 | 98.93 ▼7.21 | 47.73 ▲5.37 |
Photo Albums /wp-admin/edit.php?post_type=easy-photo-album | 1,282 | 3.41 | 52.52 | 30.34 |
Shelves /wp-admin/edit-tags.php?taxonomy=shelf&post_type=easy-photo-album | 1,365 | 2.14 | 26.45 | 33.58 |
Easy Photo Album /wp-admin/options-general.php?page=epa-settings | 1,141 | 2.12 | 26.93 | 39.37 |
Add New /wp-admin/post-new.php?post_type=easy-photo-album | 2,171 | 3.89 | 68.62 | 41.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=epa-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=epa-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Almost there! Just fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-photo-album/easy-photo-album.php on line 144
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-photo-album/EPA_List_Table.php on line 3
- > 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/easy-photo-album/EPA_List_Table.php on line 3
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-photo-album/easy-photo-album.php on line 144
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-photo-album/easy-photo-album.php on line 144
- > 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/easy-photo-album/EPA_List_Table.php on line 3
- > PHP Warning
require_once(ABSPATHWPINC/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/easy-photo-album/easy-photo-album.php on line 144
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 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: photos, responsive, album, images, lightbox
easy-photo-album/easy-photo-album.php 85% from 13 tests
This is the main PHP file of "Easy Photo Album" version 1.3.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,425 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 277 | 995 | 1,986 |
PO File | 2 | 412 | 700 | 1,095 |
JavaScript | 11 | 108 | 172 | 938 |
CSS | 9 | 64 | 10 | 371 |
SVG | 2 | 0 | 1 | 35 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 20.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 3 | 2.88% |
▷ Public methods | 85 | 81.73% |
▷ Protected methods | 3 | 2.88% |
▷ Private methods | 16 | 15.38% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 1.24MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/img/epa-settings-1.3.png | 86.80KB | 41.27KB | ▼ 52.45% |
css/img/epa-album-1.2.png | 932.76KB | 202.64KB | ▼ 78.27% |
css/img/epa-24.png | 1.79KB | 1.48KB | ▼ 17.41% |
css/img/next.png | 1.32KB | 1.58KB | 0.00% |
js/tinymce/insert.png | 4.15KB | 1.33KB | ▼ 68.00% |