Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼301.69ms] Passed 4 tests
Server-side resources used by Freefolio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.21 | 58.93 ▲5.95 |
Dashboard /wp-admin | 3.56 ▲0.16 | 35.69 ▲1.25 |
Posts /wp-admin/edit.php | 3.79 ▲0.15 | 41.20 ▲5.74 |
Add New Post /wp-admin/post-new.php | 7.06 ▲0.07 | 102.07 ▼1,208.85 |
Media Library /wp-admin/upload.php | 3.44 ▲0.14 | 27.34 ▼4.90 |
Dribbble Importer /wp-admin/tools.php?page=dpi-settings | 3.41 | 25.72 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Freefolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲78 | 15.86 ▼0.15 | 6.18 ▼0.31 | 2.88 ▲0.53 |
Dashboard /wp-admin | 2,897 ▲36 | 6.11 ▼0.10 | 119.72 ▼15.72 | 154.12 ▼8.37 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▲0.01 | 64.99 ▲0.07 | 144.59 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,714 ▼44 | 21.25 ▲0.01 | 448.53 ▲11.95 | 164.22 ▲5.28 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.50 ▼0.03 | 159.55 ▲13.41 | 204.28 ▲11.35 |
Dribbble Importer /wp-admin/tools.php?page=dpi-settings | 1,038 | 2.43 | 57.22 | 115.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freefolio/class.Freefolio.php:683
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: portfolio, dribbble, post types
freefolio/freefolio.php Passed 13 tests
The principal PHP file in "Freefolio" v. 1.1.4 is loaded by WordPress automatically on each request
43 characters long description:
Adds a portfolio to your WordPress website.
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
Everything looks great! No dangerous files found in this plugin812 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 256 | 318 | 695 |
CSS | 1 | 27 | 4 | 117 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 22 | 53.66% |
▷ Public methods | 37 | 90.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.76% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 2 | 18.18% |
▷ Class constants | 9 | 81.82% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin