Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.52ms] Passed 4 tests
This is a short check of server-side resources used by Crossword Compiler Puzzles
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.46 ▲0.60 |
Dashboard /wp-admin | 3.45 ▲0.15 | 54.58 ▲1.36 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 60.35 ▲10.30 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.21 | 97.65 ▼7.30 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.80 ▼0.74 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Crossword Compiler Puzzles
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,040 ▲279 | 15.16 ▲0.80 | 5.71 ▲4.00 | 42.14 ▲0.04 |
Dashboard /wp-admin | 2,354 ▲177 | 6.65 ▲0.99 | 119.99 ▲32.06 | 45.52 ▼1.50 |
Posts /wp-admin/edit.php | 2,296 ▲196 | 3.38 ▲1.36 | 71.74 ▲35.28 | 35.34 ▼1.91 |
Add New Post /wp-admin/post-new.php | 6,226 ▲4,700 | 19.27 ▼3.77 | 954.70 ▲323.88 | 38.03 ▼26.80 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.72 ▲0.51 | 104.84 ▼1.74 | 48.38 ▲2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/crossword-compiler-puzzles/modules/shortcodes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: crossword, sudoku, puzzle, wordsearch
crossword-compiler-puzzles/wp-crossword.php 85% from 13 tests
The primary PHP file in "Crossword Compiler Puzzles" version 4.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("crossword-compiler-puzzles.php" instead of "wp-crossword.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
Code Analysis Passed 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 plugin6,345 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 80 | 79 | 5,511 |
PHP | 7 | 120 | 72 | 579 |
JavaScript | 6 | 32 | 30 | 254 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
35 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 |
modules/css/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
modules/css/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
modules/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
modules/inc/CrosswordCompilerApp/CrosswordImages/revealword.png | 0.42KB | 0.33KB | ▼ 21.35% |
modules/inc/CrosswordCompilerApp/CrosswordImages/pencil_2x.png | 2.32KB | 1.87KB | ▼ 19.54% |