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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.07ms] Passed 4 tests
This is a short check of server-side resources used by Awesome Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.47 ▼0.33 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.07 ▲2.40 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.22 ▼0.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.30 ▼22.94 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.89 ▼0.30 |
Add New portfolio /wp-admin/post-new.php?post_type=awesome_portfolio | 3.38 | 50.67 |
awesome portfolio category /wp-admin/edit-tags.php?taxonomy=awesomeportfolio&post_type=awesome_portfolio | 3.25 | 38.55 |
All portfolio /wp-admin/edit.php?post_type=awesome_portfolio | 3.30 | 34.86 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Awesome Portfolio
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲217 | 13.71 ▼0.60 | 12.67 ▲10.76 | 48.98 ▲4.25 |
Dashboard /wp-admin | 2,234 ▲43 | 4.85 ▼0.04 | 114.04 ▼0.18 | 43.67 ▼1.23 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▼0.01 | 37.36 ▼3.49 | 35.51 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,559 ▲40 | 21.01 ▼2.65 | 669.54 ▼54.49 | 57.24 ▼16.43 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.11 ▼0.10 | 111.70 ▼1.56 | 49.42 ▲0.67 |
Add New portfolio /wp-admin/post-new.php?post_type=awesome_portfolio | 2,274 | 7.55 | 208.57 | 76.66 |
awesome portfolio category /wp-admin/edit-tags.php?taxonomy=awesomeportfolio&post_type=awesome_portfolio | 1,290 | 2.17 | 35.20 | 39.53 |
All portfolio /wp-admin/edit.php?post_type=awesome_portfolio | 1,101 | 1.95 | 32.60 | 31.67 |
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 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 add_action() in wp-content/plugins/awesome-portfolio/awesome_portfolio.php:73
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- License uri: Please fix this invalid URI: "License URI: http://www.gnu.org/licenses/gpl-2.0.html"
awesome-portfolio/awesome_portfolio.php 77% from 13 tests
"Awesome Portfolio" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-portfolio.php" instead of "awesome_portfolio.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin7,384 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 997 | 90 | 7,149 |
PHP | 1 | 38 | 16 | 156 |
JavaScript | 4 | 18 | 36 | 79 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
No PNG files were detected