Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.88ms] Passed 4 tests
A check of server-side resources used by Cool Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.74 ▲2.03 |
Dashboard /wp-admin | 3.33 ▲0.03 | 42.80 ▼4.10 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.32 ▼6.18 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 104.99 ▲19.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.53 ▼3.27 |
All Portfolios /wp-admin/edit.php?post_type=coolportfolio | 3.30 | 33.14 |
Genre /wp-admin/edit-tags.php?taxonomy=genre&post_type=coolportfolio | 3.34 | 34.72 |
Add New /wp-admin/post-new.php?post_type=coolportfolio | 3.38 | 46.62 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Cool Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.24 ▼1.06 | 1.98 ▲0.45 | 42.75 ▲2.91 |
Dashboard /wp-admin | 2,237 ▲46 | 4.88 ▼0.21 | 107.19 ▲4.48 | 41.20 ▼2.34 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 2.06 ▲0.04 | 41.21 ▲3.78 | 37.43 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,559 ▲37 | 23.34 ▲0.12 | 635.75 ▼50.89 | 64.62 ▲2.32 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.32 ▲0.10 | 94.46 ▼6.64 | 42.55 ▼0.53 |
All Portfolios /wp-admin/edit.php?post_type=coolportfolio | 1,109 | 1.95 | 29.98 | 27.94 |
Genre /wp-admin/edit-tags.php?taxonomy=genre&post_type=coolportfolio | 1,296 | 2.14 | 27.64 | 32.25 |
Add New /wp-admin/post-new.php?post_type=coolportfolio | 2,380 | 7.58 | 170.39 | 61.51 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cool-portfolio/main.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% 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
6 plugin tags: portfolio, lightbox, image, popup box, cool portfolio...
cool-portfolio/main.php 92% from 13 tests
The entry point to "Cool Portfolio" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cool-portfolio.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin290 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 6 | 0 | 167 |
PHP | 1 | 18 | 28 | 92 |
JavaScript | 1 | 3 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin