Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.54MB] [CPU: ▲3.77ms] 75% from 4 tests
A check of server-side resources used by Project Showcase - A WordPress Plugin to Display Projects in Various Layouts
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 659.23ms on /wp-admin/edit.php?post_type=gs_projects&page=gs-project-plugins-premium)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 43.92 ▲5.58 |
Dashboard /wp-admin | 3.91 ▲0.60 | 59.03 ▲13.13 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 53.38 ▲4.72 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 90.15 ▼4.42 |
Media Library /wp-admin/upload.php | 3.74 ▲0.52 | 41.41 ▲9.19 |
GS Plugins Lite /wp-admin/edit.php?post_type=gs_projects&page=gs-project-plugins-lite | 4.01 | 707.10 |
GS Plugins Pro /wp-admin/edit.php?post_type=gs_projects&page=gs-project-plugins-premium | 3.90 | 659.23 |
Projects Settings /wp-admin/edit.php?post_type=gs_projects&page=projects-settings | 3.73 | 37.28 |
Help & Usage /wp-admin/edit.php?post_type=gs_projects&page=gs-project-plugins-help | 3.74 | 40.70 |
All Projects /wp-admin/edit.php?post_type=gs_projects | 3.87 | 40.72 |
Add New Project /wp-admin/post-new.php?post_type=gs_projects | 3.92 | 49.73 |
Server storage [IO: ▲1.54MB] [DB: ▲0.11MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
gs_projects_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
gs_projects_style_settings |
Browser metrics Passed 4 tests
Project Showcase - A WordPress Plugin to Display Projects in Various Layouts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,130 ▲395 | 15.57 ▲0.98 | 5.40 ▲3.63 | 41.76 ▼2.88 |
Dashboard /wp-admin | 2,445 ▲257 | 6.79 ▲1.73 | 129.08 ▲19.15 | 43.09 ▼0.90 |
Posts /wp-admin/edit.php | 2,348 ▲259 | 3.90 ▲1.87 | 50.12 ▲9.21 | 33.36 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,598 ▲63 | 23.42 ▲0.22 | 671.08 ▼25.86 | 37.30 ▼15.78 |
Media Library /wp-admin/upload.php | 1,484 ▲96 | 4.56 ▲0.41 | 99.10 ▼2.98 | 43.82 ▼0.74 |
GS Plugins Lite /wp-admin/edit.php?post_type=gs_projects&page=gs-project-plugins-lite | 2,767 | 3.35 | 43.86 | 156.39 |
GS Plugins Pro /wp-admin/edit.php?post_type=gs_projects&page=gs-project-plugins-premium | 2,423 | 3.45 | 55.19 | 62.42 |
Projects Settings /wp-admin/edit.php?post_type=gs_projects&page=projects-settings | 1,992 | 5.50 | 125.96 | 54.47 |
Help & Usage /wp-admin/edit.php?post_type=gs_projects&page=gs-project-plugins-help | 1,165 | 3.33 | 43.40 | 39.40 |
All Projects /wp-admin/edit.php?post_type=gs_projects | 1,312 | 3.64 | 52.96 | 31.99 |
Add New Project /wp-admin/post-new.php?post_type=gs_projects | 2,415 | 7.92 | 164.51 | 67.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- gs_projects_style_settings
- gs_projects_settings
Smoke tests 50% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 10× 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/gs-projects/gsprojects-files/includes/gs-projects-meta-fields.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gs-projects/gsprojects-files/gs-common-pages/gs-project-common-pages.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-projects/gsprojects-files/gs-projects-scripts.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-projects/gsprojects-files/includes/gs-projects-cpt.php:50
- > PHP Fatal error
Uncaught Error: Class 'GS_Projects_WeDevs_Settings_API' not found in wp-content/plugins/gs-projects/gsprojects-files/admin/gs_projects_options_config.php:20
- > PHP Notice
Undefined variable: output in wp-content/plugins/gs-projects/gsprojects-files/includes/templates/gs_projects_structure_1_square.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gs-projects/gsprojects-files/includes/gs-projects-column.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_id() in wp-content/plugins/gs-projects/gsprojects-files/includes/templates/gs_projects_structure_1_square.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gs-projects/gsprojects-files/includes/gs-projects-shortcode.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gs-projects/gs-projects.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=gs_projects&page=projects-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/edit.php?post_type=gs_projects&page=projects-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: projects plugin, project wordpress, project plugin, project showcase
gs-projects/gs-projects.php 85% from 13 tests
The entry point to "Project Showcase - A WordPress Plugin to Display Projects in Various Layouts" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 415 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin6,444 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 171 | 27 | 2,545 |
PHP | 13 | 623 | 704 | 2,348 |
SVG | 3 | 0 | 0 | 835 |
Sass | 1 | 101 | 6 | 521 |
JavaScript | 2 | 54 | 67 | 195 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 33.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 1 | 0.98% |
▷ Public methods | 85 | 83.33% |
▷ Protected methods | 5 | 4.90% |
▷ Private methods | 12 | 11.76% |
Functions | 29 | |
▷ Named functions | 28 | 96.55% |
▷ Anonymous functions | 1 | 3.45% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gsprojects-files/assets/img/no_img.png | 8.45KB | 3.71KB | ▼ 56.07% |
gsprojects-files/assets/img/icon-128x128.png | 5.27KB | 3.55KB | ▼ 32.56% |