Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.09ms] Passed 4 tests
Server-side resources used by Envira Tamer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.01 ▼2.96 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.27 ▼2.84 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.32 ▼3.10 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 95.54 ▼3.47 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.15 ▲3.09 |
Post Types /wp-admin/edit.php?post_type=envira&page=envira_tamer | 3.03 | 25.60 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Envira Tamer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.33 | 1.53 ▼0.04 | 40.34 ▼0.47 |
Dashboard /wp-admin | 2,206 ▲18 | 5.80 ▲0.91 | 103.51 ▼5.85 | 39.46 ▼4.33 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.03 | 40.87 ▼2.52 | 36.12 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.46 ▲5.21 | 674.87 ▲5.09 | 73.19 ▲20.33 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.27 ▲0.11 | 95.72 ▼9.55 | 40.52 ▼3.51 |
Post Types /wp-admin/edit.php?post_type=envira&page=envira_tamer | 28 | 0.44 | 0.07 | 4.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/envira-tamer/envira-tamer.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=envira&page=envira_tamer
- > Network (severe)
wp-admin/edit.php?post_type=envira&page=envira_tamer - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: retrict, custom post type, envira gallery, gallery, cpt...
envira-tamer/envira-tamer.php Passed 13 tests
The entry point to "Envira Tamer" version 1.0.1 is a PHP file that has certain tags in its header comment area
66 characters long description:
Control which post types Envira Gallery meta box field shows up on
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected137 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 83 | 107 | 137 |
PHP code Passed 2 tests
Analyzing 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.28 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected