Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.71MB] [CPU: ▼2.26ms] Passed 4 tests
A check of server-side resources used by GNUPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 57.44 ▲15.60 |
Dashboard /wp-admin | 4.13 ▲0.78 | 52.58 ▼11.88 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 59.59 ▲8.16 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.72 | 99.47 ▼9.84 |
Media Library /wp-admin/upload.php | 4.13 ▲0.90 | 42.82 ▲4.52 |
Manage board /wp-admin/admin.php?page=g5_board_list | 4.13 | 40.53 |
Manage board tag /wp-admin/admin.php?page=g5_tag_form | 4.13 | 36.94 |
Manage user points /wp-admin/admin.php?page=g5_point_list | 4.13 | 40.78 |
Add board /wp-admin/admin.php?page=g5_board_form | 4.32 | 39.13 |
gnupress setting /wp-admin/admin.php?page=g5_board_admin | 4.13 | 38.26 |
Server storage [IO: ▲2.82MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 358 new files
Database: 9 new tables, 7 new options
New tables |
---|
wp_g5_scrap |
wp_g5_board |
wp_g5_write |
wp_g5_write_comment |
wp_g5_board_good |
wp_g5_term_relationships |
wp_g5_point |
wp_g5_writemeta |
wp_g5_term_taxonomy |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
g5_options |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for GNUPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲90 | 14.35 ▲0.17 | 2.37 ▲0.35 | 43.48 ▼10.69 |
Dashboard /wp-admin | 2,244 ▲67 | 5.67 ▲0.11 | 97.27 ▲5.01 | 41.68 ▲0.61 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.01 ▲0.01 | 42.95 ▲5.81 | 38.04 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,567 ▲32 | 23.30 ▲4.87 | 661.82 ▼22.00 | 53.30 ▼29.59 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.19 ▲0.03 | 95.94 ▼8.95 | 45.23 ▲1.10 |
Manage board /wp-admin/admin.php?page=g5_board_list | 1,154 | 2.39 | 42.73 | 64.34 |
Manage board tag /wp-admin/admin.php?page=g5_tag_form | 28 | 0.42 | 0.06 | 3.80 |
Manage user points /wp-admin/admin.php?page=g5_point_list | 1,106 | 1.69 | 25.35 | 42.20 |
Add board /wp-admin/admin.php?page=g5_board_form | 3,426 | 2.39 | 44.97 | 52.22 |
gnupress setting /wp-admin/admin.php?page=g5_board_admin | 1,743 | 1.74 | 25.08 | 70.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure failed, leaving 9 tables in the database
- wp_g5_board
- wp_g5_term_relationships
- wp_g5_board_good
- wp_g5_writemeta
- wp_g5_scrap
- wp_g5_term_taxonomy
- wp_g5_write
- wp_g5_write_comment
- wp_g5_point
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- g5_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=g5_board_list
- > Notice in wp-content/plugins/gnupress/view/board_list.php+198
Undefined variable: form_action_url
- > GET request to /wp-admin/admin.php?page=g5_board_form
- > Notice in wp-content/plugins/gnupress/view/board_form.php+540
Undefined index: bo_sh_fields
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Filter' not found in wp-content/plugins/gnupress/plugin/htmlpurifier/standalone/HTMLPurifier/Filter/YouTube.php:3
- > PHP Warning
include_once(G5_DIR_PATHlib/g5_taxonomy.lib.php): failed to open stream: No such file or directory in wp-content/plugins/gnupress/adm/admin.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Filter' not found in wp-content/plugins/gnupress/plugin/htmlpurifier/standalone/HTMLPurifier/Filter/ExtractStyleBlocks.php:23
- > PHP Fatal error
Uncaught Error: Class 'G5_common' not found in wp-content/plugins/gnupress/lib/g5_scrap.class.php:5
- > PHP Fatal error
Uncaught Error: Class 'G5_common' not found in wp-content/plugins/gnupress/lib/g5_board.class.php:5
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/gnupress/lib/g5_walker.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Language' not found in wp-content/plugins/gnupress/plugin/htmlpurifier/standalone/HTMLPurifier/Language/classes/en-x-test.php:5
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Printer' not found in wp-content/plugins/gnupress/plugin/htmlpurifier/standalone/HTMLPurifier/Printer/ConfigForm.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Lexer_DOMLex' not found in wp-content/plugins/gnupress/plugin/htmlpurifier/standalone/HTMLPurifier/Lexer/PH5P.php:13
- > PHP Fatal error
Uncaught Error: Class 'G5_Board' not found in wp-content/plugins/gnupress/lib/g5_board_delete.class.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=g5_tag_form
- > Network (severe)
wp-admin/admin.php?page=g5_tag_form - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
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:
- Screenshots: These screenshots require images: #1 (This is the first screen shot), #2 (This is the second screen shot)
gnupress/gnupress.php 92% from 13 tests
The main PHP file in "GNUPress" ver. 0.2.9 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin37,970 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 7,132 | 8,759 | 26,452 |
CSS | 10 | 215 | 119 | 7,457 |
PO File | 2 | 1,306 | 1,724 | 3,175 |
JavaScript | 9 | 156 | 162 | 885 |
INI | 1 | 1 | 1 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 232)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 539.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 232.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 240 | |
▷ Abstract classes | 12 | 5.00% |
▷ Concrete classes | 228 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 817 | |
▷ Static methods | 43 | 5.26% |
▷ Public methods | 641 | 78.46% |
▷ Protected methods | 90 | 11.02% |
▷ Private methods | 86 | 10.53% |
Functions | 182 | |
▷ Named functions | 182 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 90 | |
▷ Global constants | 32 | 35.56% |
▷ Class constants | 58 | 64.44% |
▷ Public constants | 58 | 100.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
22 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin/kcaptcha/fonts/warnock.png | 7.48KB | 4.31KB | ▼ 42.31% |
plugin/kcaptcha/fonts/constantia.png | 6.12KB | 3.51KB | ▼ 42.55% |
plugin/kcaptcha/fonts/minion.png | 6.83KB | 3.85KB | ▼ 43.70% |
plugin/kcaptcha/fonts/cambria.png | 6.34KB | 3.61KB | ▼ 43.08% |
plugin/kcaptcha/fonts/perpetua.png | 6.68KB | 3.89KB | ▼ 41.75% |