Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼6.67ms] Passed 4 tests
Analyzing server-side resources used by Simple Photo Album - by Simple Plugins
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 39.72 ▼16.64 |
Dashboard /wp-admin | 3.49 ▲0.19 | 46.97 ▼0.24 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 48.15 ▼4.27 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 96.32 ▼5.51 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 37.28 ▲5.61 |
Add Album /wp-admin/post-new.php?post_type=simpa_album | 3.47 | 49.90 |
All Albums /wp-admin/edit.php?post_type=simpa_album | 3.49 | 40.65 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 19 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
photo_columns_mobile |
photo_width |
widget_recent-comments |
db_upgraded |
simpa_version |
album_columns_tablet |
album_columns_mobile |
photo_columns_desktop |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Photo Album - by Simple Plugins
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.21 ▼1.37 | 1.53 ▼1.32 | 37.62 ▼22.93 |
Dashboard /wp-admin | 2,233 ▲45 | 4.82 ▼0.99 | 104.87 ▲1.52 | 36.87 ▼10.53 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.06 ▲0.06 | 39.01 ▼2.00 | 34.96 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,557 ▲164 | 20.87 ▲2.20 | 628.88 ▲22.25 | 54.18 ▼7.55 |
Media Library /wp-admin/upload.php | 1,418 ▲36 | 4.17 ▼0.03 | 95.81 ▼1.74 | 41.16 ▼0.75 |
Add Album /wp-admin/post-new.php?post_type=simpa_album | 1,667 | 3.53 | 61.91 | 32.13 |
All Albums /wp-admin/edit.php?post_type=simpa_album | 1,268 | 3.33 | 49.62 | 28.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 19 options in the database
- photo_columns_desktop
- simpa_version
- cover_height
- db_upgraded
- album_columns_gap
- photo_width
- album_columns_tablet
- photo_columns_mobile
- album_columns_desktop
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-photo-album/templates/albums.php
- > /wp-content/plugins/simple-photo-album/templates/album.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-photo-album/templates/empty-album.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-photo-album/templates/admin/metabox/gallery.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-photo-album/templates/admin/metabox/album-cover.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-photo-album/templates/invalid-album.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-photo-album/templates/no-album.php:1
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/simple-photo-album/templates/albums.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/simple-photo-album/simple-photo-album.php:22
- > PHP Notice
Undefined variable: photos in wp-content/plugins/simple-photo-album/templates/album.php on line 3
- > PHP Notice
Undefined variable: data in wp-content/plugins/simple-photo-album/templates/albums.php on line 3
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/simple-photo-album/templates/album.php on line 3
- > 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 issues were found
Optimizations
Plugin configuration 97% 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:
- Requires at least: Invalid version format
simple-photo-album/simple-photo-album.php Passed 13 tests
"Simple Photo Album - by Simple Plugins" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
93 characters long description:
Creates a simple photo album system with minimal settings as the name suggests, it\'s simple.
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
No dangerous file extensions were detected5,575 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,206 | 644 | 3,887 |
CSS | 6 | 167 | 20 | 907 |
PHP | 16 | 532 | 162 | 781 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There are no PNG files in this plugin