Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▲3.24ms] Passed 4 tests
An overview of server-side resources used by CasePress UpVote
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.79 ▲4.64 |
Dashboard /wp-admin | 3.44 ▲0.13 | 51.02 ▲2.69 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 54.10 ▲4.71 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 104.84 ▲15.76 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.56 ▲0.90 |
Upvote Settings /wp-admin/options-general.php?page=casepress-upvote | 3.33 | 30.67 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 14 new options
New WordPress options |
---|
theysaidso_admin_options |
casepress-upvote_buttons-style |
casepress-upvote_position-comments |
casepress-upvote_like-posts |
widget_theysaidso_widget |
casepress-upvote_position-posts |
widget_recent-comments |
db_upgraded |
casepress-upvote_like-comments |
casepress-upvote_dislikes |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CasePress UpVote
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.47 ▼1.17 | 9.09 ▲7.36 | 47.60 ▲2.88 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▼0.04 | 85.24 ▼2.93 | 39.96 ▼5.74 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▲0.03 | 39.53 ▲3.00 | 33.56 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,608 ▲82 | 23.60 ▲0.42 | 638.75 ▲23.92 | 51.89 ▼6.26 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.29 ▲0.11 | 99.65 ▼4.87 | 43.57 ▼2.64 |
Upvote Settings /wp-admin/options-general.php?page=casepress-upvote | 1,045 | 1.65 | 23.46 | 28.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- casepress-upvote_noauth-msg
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/casepress-upvote/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/casepress-upvote/settings.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png - shows plugin settings.), #2 (screenshot-2.png - shows one of buttons positions.), #3 (screenshot-3.png - shows one of buttons positions.), #4 (screenshot-4.png - shows one of buttons positions.), #5 (screenshot-5.png - shows one of buttons positions.)
casepress-upvote/casepress-upvote.php Passed 13 tests
The principal PHP file in "CasePress UpVote" v. 1.0.0 is loaded by WordPress automatically on each request
52 characters long description:
CasePress UpVote - posts and comments rating system.
Code Analysis Passed 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 detected1,014 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 81 | 17 | 696 |
CSS | 3 | 1 | 1 | 158 |
JavaScript | 2 | 13 | 0 | 80 |
PO File | 1 | 28 | 38 | 80 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 63.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 6.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
6 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 28.79KB | 11.26KB | ▼ 60.88% |
screenshot-5.png | 13.52KB | 6.23KB | ▼ 53.92% |
screenshot-4.png | 13.54KB | 6.21KB | ▼ 54.15% |
styles/buttons/stackoverflow/sprites-stackoverflow.png | 16.04KB | 7.92KB | ▼ 50.60% |
screenshot-3.png | 12.82KB | 5.80KB | ▼ 54.74% |