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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.39ms] Passed 4 tests
Analyzing server-side resources used by reFolio - Elegant Portfolios
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.60 ▼1.47 |
Dashboard /wp-admin | 3.32 ▼0.03 | 49.27 ▼15.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.01 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 101.92 ▼1.18 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.92 ▼3.64 |
Help Me! /wp-admin/admin.php?page=refolio_help | 3.21 | 36.60 |
reFolio /wp-admin/admin.php?page=refolio_review | 3.19 | 37.32 |
New Portfolio /wp-admin/admin.php?page=refolio_modify | 3.22 | 34.34 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
refolio_portfolios |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for reFolio - Elegant Portfolios
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲195 | 13.57 ▼0.87 | 8.50 ▲6.74 | 37.31 ▼17.62 |
Dashboard /wp-admin | 2,251 ▲48 | 5.81 ▼0.05 | 100.05 ▼13.03 | 35.71 ▼8.22 |
Posts /wp-admin/edit.php | 2,151 ▲54 | 2.32 ▲0.31 | 38.03 ▲0.87 | 36.35 ▲4.33 |
Add New Post /wp-admin/post-new.php | 1,558 ▲27 | 23.49 ▲0.12 | 668.80 ▲15.19 | 72.18 ▼5.67 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.32 ▲0.08 | 111.00 ▲1.97 | 49.54 ▼3.37 |
Help Me! /wp-admin/admin.php?page=refolio_help | 932 | 2.03 | 29.01 | 27.64 |
reFolio /wp-admin/admin.php?page=refolio_review | 873 | 1.96 | 28.93 | 30.88 |
New Portfolio /wp-admin/admin.php?page=refolio_modify | 1,121 | 2.17 | 39.93 | 33.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- refolio_portfolios
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=refolio_review
- > Warning in wp-content/plugins/refolio/refolio-pages.php+58
count(): Parameter must be an array or an object that implements Countable
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
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/refolio/refolio-pages.php' (include_path='.:/usr/share/php') in wp-content/plugins/refolio/refolio.php on line 12
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/refolio/refolio-portfolios.php on line 2
- > PHP Warning
require_once(WP_PLUGIN_DIR/refolio/refolio-pages.php): failed to open stream: No such file or directory in wp-content/plugins/refolio/refolio.php on line 12
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/refolio/refolio-portfolio.php' (include_path='.:/usr/share/php') in wp-content/plugins/refolio/refolio-portfolios.php on line 2
- > PHP Warning
require_once(WP_PLUGIN_DIR/refolio/refolio-portfolio.php): failed to open stream: No such file or directory in wp-content/plugins/refolio/refolio-portfolios.php on line 2
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/refolio/refolio.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== refolio ===
)
refolio/refolio.php Passed 13 tests
The primary PHP file in "reFolio - Elegant Portfolios" version 1.0 is used by WordPress to initiate all plugin functionality
41 characters long description:
A beautiful and elegant portfolio plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,004 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 162 | 195 | 639 |
JavaScript | 3 | 56 | 132 | 319 |
CSS | 2 | 11 | 0 | 46 |
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.32 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 5 | 17.24% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG images were not found in this plugin