Benchmarks
Plugin footprint 83% from 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.18MB] [CPU: ▼5.56ms] Passed 4 tests
Analyzing server-side resources used by Simple Project Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 39.19 ▼1.96 |
Dashboard /wp-admin | 3.49 ▲0.19 | 48.27 ▼3.05 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 44.83 ▼3.81 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 80.73 ▼13.42 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 39.41 ▲0.83 |
Clients /wp-admin/edit.php?post_type=albdesign_client | 3.48 | 35.46 |
Settings /wp-admin/edit.php?post_type=albdesign_project&page=albdesign-project-settings | 3.46 | 32.94 |
Reports /wp-admin/edit.php?post_type=albdesign_project&page=albdesign-project-Reports | 3.55 | 48.30 |
Projects /wp-admin/edit.php?post_type=albdesign_project | 3.48 | 37.22 |
Invoices /wp-admin/edit.php?post_type=albdesign_invoice | 3.48 | 32.15 |
Tasks /wp-admin/edit.php?post_type=albdesign_task | 3.48 | 39.58 |
Server storage [IO: ▲20.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 735 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Project Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 13.32 ▼1.04 | 2.00 ▲0.35 | 46.79 ▲6.96 |
Dashboard /wp-admin | 2,256 ▲76 | 5.87 ▲0.24 | 112.98 ▲21.23 | 44.13 ▲3.60 |
Posts /wp-admin/edit.php | 2,165 ▲62 | 2.31 ▲0.36 | 34.95 ▼0.60 | 33.76 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,582 ▲54 | 23.23 ▲0.02 | 688.97 ▲11.86 | 38.70 ▼15.28 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 4.55 ▲0.32 | 110.01 ▲14.64 | 47.65 ▲3.98 |
Clients /wp-admin/edit.php?post_type=albdesign_client | 1,123 | 2.29 | 38.21 | 28.47 |
Settings /wp-admin/edit.php?post_type=albdesign_project&page=albdesign-project-settings | 1,078 | 2.34 | 32.53 | 26.32 |
Reports /wp-admin/edit.php?post_type=albdesign_project&page=albdesign-project-Reports | 2,096 | 2.93 | 91.35 | 60.00 |
Projects /wp-admin/edit.php?post_type=albdesign_project | 1,139 | 2.32 | 39.96 | 26.22 |
Invoices /wp-admin/edit.php?post_type=albdesign_invoice | 1,164 | 2.90 | 43.49 | 25.67 |
Tasks /wp-admin/edit.php?post_type=albdesign_task | 1,123 | 2.32 | 38.12 | 27.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-project-managment/assets/admin/dompdf/load_font.php
- > /wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/php-font-lib/www/font_list.php
- > /wp-content/plugins/simple-project-managment/include/helpers/reports_pages/incomes_tab_content.php
- > /wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/php-css-parser/tests/quickdump.php
- > /wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/php-font-lib/index.php
- > /wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/php-font-lib/www/index.php
- 307× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\Block' not found in wp-content/plugins/simple-project-managment/assets/admin/dompdf/src/FrameReflower/TableCell.php:18
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/php-font-lib/src/FontLib/WOFF/File.php:20
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/php-svg-lib/src/Svg/Tag/Text.php:11
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/fonts/dompdf_font_family_cache.php on line 39
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/fonts/dompdf_font_family_cache.php on line 22
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/fonts/dompdf_font_family_cache.php on line 46
- > PHP Warning
Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-project-managment/assets/admin/dompdf/include/page_cache.cls.php on line 28
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/fonts/dompdf_font_family_cache.php on line 5
- > PHP Fatal error
Uncaught Error: Interface 'Svg\\Surface\\SurfaceInterface' not found in wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/php-svg-lib/src/Svg/Surface/SurfacePDFLib.php:14
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/simple-project-managment/assets/admin/dompdf/lib/php-svg-lib/src/Svg/Tag/Line.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=albdesign_task
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at Object.hooks (/wp-content/plugins/simple-project-managment/include/meta-box-class/js/meta-box.js:193:73)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/simple-project-managment/include/meta-box-class/js/meta-box.js:338:20)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=albdesign_task
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== simple-project-managment ===
)
simple-project-managment/projects.php 92% from 13 tests
The main file in "Simple Project Manager" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-project-managment.php" instead of "projects.php")
Code Analysis 97% from 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 detected88,646 lines of code in 517 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 338 | 15,811 | 25,692 | 61,153 |
JavaScript | 45 | 1,936 | 2,548 | 11,991 |
CSS | 81 | 627 | 751 | 11,676 |
LESS | 20 | 374 | 97 | 1,760 |
Markdown | 6 | 255 | 0 | 909 |
PO File | 6 | 277 | 414 | 676 |
XML | 6 | 3 | 2 | 201 |
JSON | 5 | 0 | 0 | 139 |
HTML | 5 | 2 | 0 | 68 |
YAML | 4 | 16 | 3 | 65 |
SVG | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 34.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 765.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 291 | |
▷ Abstract classes | 17 | 5.84% |
▷ Concrete classes | 274 | 94.16% |
▷ Final classes | 0 | 0.00% |
Methods | 3,247 | |
▷ Static methods | 193 | 5.94% |
▷ Public methods | 2,801 | 86.26% |
▷ Protected methods | 328 | 10.10% |
▷ Private methods | 118 | 3.63% |
Functions | 69 | |
▷ Named functions | 54 | 78.26% |
▷ Anonymous functions | 15 | 21.74% |
Constants | 246 | |
▷ Global constants | 10 | 4.07% |
▷ Class constants | 236 | 95.93% |
▷ Public constants | 236 | 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
79 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/meta-box-class/js/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
assets/admin/jtable/themes/jqueryui/close.png | 1.19KB | 1.22KB | 0.00% |
assets/admin/dompdf/lib/php-font-lib/www/css/blitzer/images/ui-bg_glass_55_fbf8ee_1x400.png | 0.14KB | 0.14KB | ▼ 2.10% |
include/meta-box-class/images/move.png | 0.26KB | 0.26KB | 0.00% |
assets/admin/dompdf/lib/php-font-lib/www/css/blitzer/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png | 0.09KB | 0.11KB | 0.00% |