Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.97ms] Passed 4 tests
A check of server-side resources used by Portfolio 5000
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.68 ▼3.22 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.79 ▼4.56 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.54 ▲0.95 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.44 ▼13.05 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.11 ▲2.34 |
Add New /wp-admin/post-new.php?post_type=p5000 | 3.43 | 45.70 |
Skills Used /wp-admin/edit-tags.php?taxonomy=skills_used&post_type=p5000 | 3.31 | 29.04 |
Portfolio 5000 Project Types /wp-admin/edit-tags.php?taxonomy=project_types&post_type=p5000 | 3.31 | 33.87 |
All Projects /wp-admin/edit.php?post_type=p5000 | 3.36 | 33.86 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Portfolio 5000: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲133 | 13.20 ▼1.18 | 1.91 ▲0.16 | 40.30 ▼3.59 |
Dashboard /wp-admin | 2,247 ▲56 | 5.84 ▲0.96 | 97.08 ▼6.74 | 77.22 ▲34.89 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▼0.03 | 34.58 ▼5.44 | 32.73 ▼5.82 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.13 ▲4.92 | 674.44 ▲77.25 | 55.93 ▼0.31 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.11 ▼0.07 | 93.98 ▼7.34 | 82.04 ▲33.45 |
Add New /wp-admin/post-new.php?post_type=p5000 | 2,375 | 7.77 | 176.95 | 128.79 |
Skills Used /wp-admin/edit-tags.php?taxonomy=skills_used&post_type=p5000 | 1,269 | 2.29 | 23.76 | 28.21 |
Portfolio 5000 Project Types /wp-admin/edit-tags.php?taxonomy=project_types&post_type=p5000 | 1,269 | 2.14 | 24.79 | 29.26 |
All Projects /wp-admin/edit.php?post_type=p5000 | 1,119 | 1.95 | 31.99 | 29.13 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-5000/portfolio-5000.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: web developer, gallery, web designer, slider, portfolio
portfolio-5000/portfolio-5000.php 92% from 13 tests
Analyzing the main PHP file in "Portfolio 5000" version 1.0.1
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 166 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected385 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 44 | 24 | 200 |
CSS | 1 | 54 | 1 | 184 |
XML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
portfolio5000-icon.png | 1.64KB | 0.77KB | ▼ 53.28% |