Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲5.11MB] [CPU: ▲25.38ms] 75% from 4 tests
Analyzing server-side resources used by Run Contests, Raffles, and Giveaways with ContestsWP
Please fix the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.11MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.87 ▲5.41 | 67.72 ▲29.32 |
Dashboard /wp-admin | 8.89 ▲5.59 | 74.99 ▲26.42 |
Posts /wp-admin/edit.php | 8.89 ▲5.54 | 80.13 ▲28.34 |
Add New Post /wp-admin/post-new.php | 9.80 ▲3.91 | 125.64 ▲17.44 |
Media Library /wp-admin/upload.php | 8.89 ▲5.67 | 74.31 ▲36.84 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.89 | 60.50 |
Server storage [IO: ▲4.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 506 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
fs_debug_mode |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Run Contests, Raffles, and Giveaways with ContestsWP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲222 | 14.00 ▼0.38 | 9.95 ▲8.13 | 29.37 ▼20.52 |
Dashboard /wp-admin | 2,244 ▲56 | 4.95 ▼0.94 | 108.12 ▲2.37 | 65.70 ▲26.98 |
Posts /wp-admin/edit.php | 2,139 ▲53 | 2.44 ▲0.40 | 40.11 ▲0.70 | 37.80 ▲4.74 |
Add New Post /wp-admin/post-new.php | 1,703 ▲161 | 22.30 ▲3.94 | 706.56 ▲62.50 | 32.94 ▼16.06 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.43 ▲0.24 | 101.93 ▲2.27 | 72.48 ▲29.87 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,107 | 1.86 | 24.79 | 27.34 |
Uninstaller [IO: ▲4.31MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attentionThe uninstall procedure has failed, leaving 9 options in the database
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/contest-code-checker/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Incomplete uninstall procedure, leaving 506 files (4.31MB) in the plugin directory
- (new file) free/README.txt
- (new file) free/admin/contestants/class-contestants-table.php
- (new file) contestswp.php
- (new file) free/admin/class-contest-code-checker-admin-contestants.php
- (new file) free/admin/class-contest-code-checker-admin-prizes.php
- (new file) free/admin/class-contest-code-checker-admin-contest-codes.php
- (new file) free/admin/contest_codes/class-contest-codes-table.php
- (new file) free/admin/class-contest-code-checker-admin.php
- (new file) README.txt
- (new file) free/LICENSE.txt
- ...
- fs_active_plugins
- widget_theysaidso_widget
- fs_accounts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- fs_debug_mode
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 74× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Common\\Helper\\Escaper\\EscaperInterface' not found in wp-content/plugins/contest-code-checker/free/includes/spout/src/Spout/Common/Helper/Escaper/XLSX.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Common\\Helper\\FileSystemHelperInterface' not found in wp-content/plugins/contest-code-checker/free/includes/spout/src/Spout/Writer/Common/Helper/FileSystemWithRootFolderHelperInterface.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Reader\\IteratorInterface' not found in wp-content/plugins/contest-code-checker/free/includes/spout/src/Spout/Reader/XLSX/RowIterator.php:21
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Creator\\HelperFactory' not found in wp-content/plugins/contest-code-checker/free/includes/spout/src/Spout/Writer/XLSX/Creator/HelperFactory.php:17
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Exception\\SpoutException' not found in wp-content/plugins/contest-code-checker/free/includes/spout/src/Spout/Common/Exception/UnsupportedTypeException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Reader\\Common\\Creator\\InternalEntityFactoryInterface' not found in wp-content/plugins/contest-code-checker/free/includes/spout/src/Spout/Reader/XLSX/Creator/InternalEntityFactory.php:20
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Manager\\OptionsManagerAbstract' not found in wp-content/plugins/contest-code-checker/free/includes/spout/src/Spout/Writer/XLSX/Manager/OptionsManager.php:13
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Manager\\OptionsManagerAbstract' not found in wp-content/plugins/contest-code-checker/free/includes/spout/src/Spout/Reader/ODS/Manager/OptionsManager.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Writer\\Common\\Creator\\ManagerFactoryInterface' not found in wp-content/plugins/contest-code-checker/free/includes/spout/src/Spout/Writer/XLSX/Creator/ManagerFactory.php:22
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Writer\\Exception\\WriterException' not found in wp-content/plugins/contest-code-checker/free/includes/spout/src/Spout/Writer/Exception/WriterNotOpenedException.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in contest-code-checker/assets to your readme.txt
contest-code-checker/contestswp.php 85% from 13 tests
This is the main PHP file of "Run Contests, Raffles, and Giveaways with ContestsWP" version 1.9.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("contest-code-checker.php" instead of "contestswp.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin48,263 lines of code in 431 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 280 | 10,721 | 24,409 | 42,561 |
JavaScript | 127 | 589 | 1,015 | 4,193 |
CSS | 19 | 55 | 67 | 1,201 |
PO File | 1 | 52 | 75 | 126 |
Markdown | 2 | 42 | 0 | 110 |
JSON | 1 | 0 | 0 | 42 |
YAML | 1 | 5 | 0 | 30 |
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
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 25.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 14 | |
Traits | 1 | |
Classes | 192 | |
▷ Abstract classes | 15 | 7.81% |
▷ Concrete classes | 177 | 92.19% |
▷ Final classes | 0 | 0.00% |
Methods | 2,220 | |
▷ Static methods | 243 | 10.95% |
▷ Public methods | 1,529 | 68.87% |
▷ Protected methods | 200 | 9.01% |
▷ Private methods | 491 | 22.12% |
Functions | 112 | |
▷ Named functions | 106 | 94.64% |
▷ Anonymous functions | 6 | 5.36% |
Constants | 365 | |
▷ Global constants | 100 | 27.40% |
▷ Class constants | 265 | 72.60% |
▷ Public constants | 265 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 0.28MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
free/admin/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
free/admin/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
free/public/images/contestswp_icon.png | 68.02KB | 17.75KB | ▼ 73.90% |
free/admin/js/multi-select/img/switch.png | 0.53KB | 0.64KB | 0.00% |
free/public/images/error.png | 1.50KB | 1.30KB | ▼ 13.19% |