Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.48MB] [CPU: ▼141.85ms] 75% from 4 tests
An overview of server-side resources used by Project Sync for Github
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 2,185.27ms on /wp-admin/options-general.php?page=gitget)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.33 ▲0.50 | 39.76 ▲13.39 |
Dashboard /wp-admin | 3.58 ▲0.52 | 51.96 ▲5.97 |
Posts /wp-admin/edit.php | 3.63 ▲0.51 | 47.81 ▼7.97 |
Add New Post /wp-admin/post-new.php | 5.88 ▲0.45 | 89.62 ▼566.43 |
Media Library /wp-admin/upload.php | 3.46 ▲0.46 | 37.89 ▲1.03 |
Project Categories /wp-admin/edit-tags.php?taxonomy=gitget_categories&post_type=gitget_project | 3.46 | 36.75 |
All Projects /wp-admin/edit.php?post_type=gitget_project | 3.56 | 37.33 |
Project Sync for Github /wp-admin/options-general.php?page=gitget | 3.53 | 2,185.27 |
Languages /wp-admin/edit-tags.php?taxonomy=gitget_languages&post_type=gitget_project | 3.45 | 34.56 |
Add New Project /wp-admin/post-new.php?post_type=gitget_project | 3.70 | 168.59 |
Project Tags /wp-admin/edit-tags.php?taxonomy=gitget_tags&post_type=gitget_project | 3.45 | 41.62 |
Server storage [IO: ▲2.87MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Project Sync for Github
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,765 ▲128 | 16.27 ▲0.86 | 9.74 ▼1.35 | 46.33 ▼0.37 |
Dashboard /wp-admin | 3,014 ▲80 | 5.89 ▼0.06 | 143.46 ▼9.06 | 124.40 ▲9.15 |
Posts /wp-admin/edit.php | 2,794 ▲55 | 2.60 ▼0.12 | 62.18 ▼1.50 | 91.22 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,718 ▲103 | 18.73 ▼2.68 | 419.89 ▲111.40 | 106.13 ▼1.29 |
Media Library /wp-admin/upload.php | 1,802 ▼5 | 5.01 ▼0.01 | 136.09 ▼27.13 | 144.69 ▲34.45 |
Project Categories /wp-admin/edit-tags.php?taxonomy=gitget_categories&post_type=gitget_project | 1,811 | 2.39 | 58.68 | 82.21 |
All Projects /wp-admin/edit.php?post_type=gitget_project | 1,465 | 2.62 | 63.68 | 76.69 |
Project Sync for Github /wp-admin/options-general.php?page=gitget | 1,159 | 2.09 | 53.39 | 82.53 |
Languages /wp-admin/edit-tags.php?taxonomy=gitget_languages&post_type=gitget_project | 1,780 | 2.40 | 66.38 | 79.91 |
Add New Project /wp-admin/post-new.php?post_type=gitget_project | 4,025 | 9.29 | 249.77 | 191.51 |
Project Tags /wp-admin/edit-tags.php?taxonomy=gitget_tags&post_type=gitget_project | 1,780 | 2.39 | 59.99 | 82.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/project-sync-for-github/vendor/michelf/php-markdown/Readme.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/project-sync-for-github/gitget.php:641
- > PHP Fatal error
Uncaught Error: Class 'FSD_DATA_SYNC' not found in wp-content/plugins/project-sync-for-github/data-sync.php:3
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/project-sync-for-github/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/project-sync-for-github/vendor/michelf/php-markdown/Michelf/Markdown.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in project-sync-for-github/assets to your readme.txt
project-sync-for-github/gitget.php 92% from 13 tests
The main file in "Project Sync for Github" v. 0.3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("project-sync-for-github.php" instead of "gitget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected11,674 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 897 | 2,492 | 4,518 |
SVG | 3 | 0 | 0 | 4,065 |
JavaScript | 3 | 342 | 237 | 1,898 |
CSS | 6 | 89 | 41 | 780 |
Markdown | 3 | 132 | 0 | 318 |
JSON | 3 | 0 | 0 | 95 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 29.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 204 | |
▷ Static methods | 34 | 16.67% |
▷ Public methods | 93 | 45.59% |
▷ Protected methods | 104 | 50.98% |
▷ Private methods | 7 | 3.43% |
Functions | 13 | |
▷ Named functions | 1 | 7.69% |
▷ Anonymous functions | 12 | 92.31% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/img/default-project-image.png | 2.56KB | 1.51KB | ▼ 41.07% |
lib/img/fa-github.png | 0.52KB | 0.55KB | 0.00% |
lib/img/fsd-logo.png | 21.44KB | 10.37KB | ▼ 51.65% |