Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼45.37ms] Passed 4 tests
Analyzing server-side resources used by Digital Publications by Supsystic
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.48 | 142.57 ▼13.89 |
Dashboard /wp-admin | 3.56 ▲0.26 | 121.03 ▼26.65 |
Posts /wp-admin/edit.php | 3.68 ▼0.17 | 98.01 ▼11.30 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 183.27 ▼129.62 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 130.07 ▲59.88 |
Publications /wp-admin/edit-tags.php?taxonomy=dps_book | 3.66 | 96.56 |
Pages /wp-admin/edit.php?post_type=dps_page | 3.77 | 163.63 |
Overview /wp-admin/admin.php?page=digital-publications-supsystic&tab=overview | 3.59 | 130.15 |
Digital Publications by Supsystic /wp-admin/admin.php?page=digital-publications-supsystic | 3.54 | 136.13 |
Server storage [IO: ▲9.20MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 507 new files
Database: 5 new tables, 10 new options
New tables |
---|
wp_dps_page_sort_order |
wp_dps_modules_type |
wp_dps_page_as_img |
wp_dps_modules |
wp_dps_usage_stat |
New WordPress options |
---|
wp_dps_db_version |
dps_opts_data |
widget_theysaidso_widget |
dps_plugin_activation_errors |
theysaidso_admin_options |
can_compress_scripts |
wp_dps_db_installed |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics 75% from 4 tests
A check of browser resources used by Digital Publications by Supsystic
Having an awesome user experience is important, so please improve the following
- Script duration: Total JavaScript execution time should be lower than 1,500.00ms (currently 1,860.38ms on /wp-admin/admin.php?page=digital-publications-supsystic)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲96 | 14.40 ▲0.14 | 6.64 ▲0.82 | 90.63 ▼33.13 |
Dashboard /wp-admin | 2,242 ▲35 | 4.88 ▼0.10 | 195.13 ▼172.55 | 97.18 ▼39.44 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.03 ▲0.05 | 68.46 ▼28.54 | 74.10 ▼37.23 |
Add New Post /wp-admin/post-new.php | 1,457 ▲96 | 17.18 ▼0.45 | 1,431.98 ▲107.88 | 109.00 ▼14.66 |
Media Library /wp-admin/upload.php | 1,421 ▲36 | 4.20 ▲0.05 | 384.06 ▲143.77 | 159.99 ▲61.23 |
Publications /wp-admin/edit-tags.php?taxonomy=dps_book | 2,065 | 3.85 | 142.19 | 109.22 |
Pages /wp-admin/edit.php?post_type=dps_page | 1,353 | 3.59 | 206.75 | 113.96 |
Overview /wp-admin/admin.php?page=digital-publications-supsystic&tab=overview | 2,768 | 26.24 | 1,141.23 | 221.93 |
Digital Publications by Supsystic /wp-admin/admin.php?page=digital-publications-supsystic | 2,676 | 18.16 | 1,860.38 | 191.85 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-posts
- dps_opts_data
- db_upgraded
- widget_recent-comments
- dps_plugin_activation_errors
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% 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 | 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/digital-publications-by-supsystic/modules/book/classes/dom2pdfnew/lib/php-css-parser/tests/quickdump.php
- > /wp-content/plugins/digital-publications-by-supsystic/modules/supsystic_promo/views/tpl/adminFooter.php
- 211× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\CSSList\\CSSBlockList' not found in wp-content/plugins/digital-publications-by-supsystic/modules/book/classes/dom2pdfnew/lib/php-css-parser/lib/Sabberworm/CSS/CSSList/Document.php:10
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\ValueList' not found in wp-content/plugins/digital-publications-by-supsystic/modules/book/classes/dom2pdfnew/lib/php-css-parser/lib/Sabberworm/CSS/Value/RuleValueList.php:5
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/digital-publications-by-supsystic/modules/book/classes/dom2pdfnew/src/Positioner/Absolute.php:16
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\DirectoryEntry' not found in wp-content/plugins/digital-publications-by-supsystic/modules/book/classes/dom2pdfnew/lib/php-font-lib/src/FontLib/TrueType/TableDirectoryEntry.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/digital-publications-by-supsystic/modules/book/classes/dom2pdfnew/src/Positioner/TableCell.php:19
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/digital-publications-by-supsystic/modules/book/classes/dom2pdfnew/lib/php-svg-lib/src/Svg/Tag/Ellipse.php:11
- > 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/digital-publications-by-supsystic/config.php on line 10
- > PHP Fatal error
Uncaught Error: Interface 'Dompdf\\Canvas' not found in wp-content/plugins/digital-publications-by-supsystic/modules/book/classes/dom2pdfnew/src/Adapter/GD.php:24
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/digital-publications-by-supsystic/modules/book/classes/dom2pdfnew/src/Positioner/Block.php:19
- > PHP Fatal error
Uncaught Error: Class 'viewDps' not found in wp-content/plugins/digital-publications-by-supsystic/modules/mail/views/mail.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 to be fixed:
- Tags: Too many tags (32 tag instead of maximum 10); only the first 5 tags are used in your directory listing
digital-publications-by-supsystic/dps.php 92% from 13 tests
This is the main PHP file of "Digital Publications by Supsystic" version 1.7.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("digital-publications-by-supsystic.php" instead of "dps.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin61,856 lines of code in 396 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 285 | 8,749 | 16,467 | 46,946 |
CSS | 66 | 306 | 255 | 3,978 |
JavaScript | 24 | 229 | 371 | 3,794 |
PO File | 4 | 1,490 | 1,815 | 3,528 |
SVG | 2 | 0 | 0 | 2,679 |
Markdown | 4 | 185 | 0 | 724 |
JSON | 4 | 0 | 0 | 97 |
YAML | 3 | 12 | 2 | 64 |
XML | 4 | 3 | 0 | 46 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 33.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 797.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 244 | |
▷ Abstract classes | 19 | 7.79% |
▷ Concrete classes | 225 | 92.21% |
▷ Final classes | 0 | 0.00% |
Methods | 2,794 | |
▷ Static methods | 336 | 12.03% |
▷ Public methods | 2,436 | 87.19% |
▷ Protected methods | 254 | 9.09% |
▷ Private methods | 104 | 3.72% |
Functions | 35 | |
▷ Named functions | 20 | 57.14% |
▷ Anonymous functions | 15 | 42.86% |
Constants | 238 | |
▷ Global constants | 60 | 25.21% |
▷ Class constants | 178 | 74.79% |
▷ Public constants | 178 | 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
52 PNG files occupy 0.47MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/split.png | 0.64KB | 1.04KB | 0.00% |
css/images/minimal@2x.png | 3.38KB | 2.56KB | ▼ 24.15% |
modules/book/img/tb_simple/Export.png | 0.43KB | 0.48KB | 0.00% |
modules/book/img/tb_simple/Go forward.png | 0.19KB | 0.19KB | 0.00% |
css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |