Benchmarks
Plugin footprint 65% 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.16MB] [CPU: ▼4.51ms] Passed 4 tests
Analyzing server-side resources used by Codeins Post Voting
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 49.93 ▲6.42 |
Dashboard /wp-admin | 3.47 ▲0.13 | 51.01 ▼13.29 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.97 ▼5.92 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 99.17 ▼0.99 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.98 ▲2.18 |
Post stats /wp-admin/admin.php?page=cm-post-stats | 3.42 | 34.96 |
User Management /wp-admin/admin.php?page=cm-user-management | 3.38 | 39.73 |
Generl Settings /wp-admin/admin.php?page=codeinspostrating | 3.44 | 36.31 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 29 new options
New tables |
---|
wp_codeins_post_voting |
New WordPress options |
---|
comd_bar_font_size |
can_compress_scripts |
comd_insert_post_catogracy_id |
comd_bar_vertical_align |
widget_recent-posts |
widget_recent-comments |
comd_bar_hot_limit |
comd_bar_width |
db_upgraded |
comd_bar_font_name |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Codeins Post Voting
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲205 | 13.63 ▼0.59 | 9.34 ▲7.46 | 49.30 ▲1.27 |
Dashboard /wp-admin | 2,237 ▲52 | 5.87 ▲0.01 | 109.00 ▲1.56 | 42.27 ▼0.19 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.05 ▲0.01 | 39.57 ▼2.24 | 35.06 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,559 ▲17 | 23.34 ▲5.19 | 652.01 ▲34.37 | 57.30 ▼0.77 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.30 ▲0.14 | 95.89 ▼3.34 | 43.84 ▼2.44 |
Post stats /wp-admin/admin.php?page=cm-post-stats | 936 | 2.30 | 35.27 | 38.53 |
User Management /wp-admin/admin.php?page=cm-user-management | 911 | 2.10 | 36.31 | 29.28 |
Generl Settings /wp-admin/admin.php?page=codeinspostrating | 1,717 | 2.79 | 55.44 | 27.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_codeins_post_voting
- The uninstall procedure has failed, leaving 29 options in the database
- comd_widget_post_limit
- widget_recent-comments
- comd_bar_width_type
- comd_user_vote_vlaue
- comd_auto_insert_to_pages
- comd_bar_border_type
- comd_bar_vertical_align
- comd_backgroud_color
- comd_bar_cold_limit
- comdal_bar_border_color
- ...
Smoke tests 50% 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 | 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
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/codeins-post-voting/admin/user-manage.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/codeins-post-voting/admin/options-setting.php:5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/codeins-post-voting/admin/post-stats.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codeins-post-voting/codeins-post-voting.php:14
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/codeins-post-voting/admin/user-manage.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/codeins-post-voting/include/hot-cold-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/codeins-post-voting/admin/post-stats.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=cm-post-stats
- > Network (severe)
wp-content/plugins/codeins-post-voting/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Donate link: Invalid URI ("www.codeins.org/donate")
codeins-post-voting/codeins-post-voting.php 92% from 13 tests
This is the main PHP file of "Codeins Post Voting" version 1.0, 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:
- Description: Please don't use more than 140 characters for the plugin description (currently 245 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,420 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 335 | 130 | 1,299 |
CSS | 3 | 110 | 66 | 803 |
JavaScript | 4 | 55 | 33 | 318 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/fixed-icons.png | 0.14KB | 0.14KB | 0.00% |
css/cold.png | 1.40KB | 1.06KB | ▼ 24.28% |
css/hot.png | 1.86KB | 1.99KB | 0.00% |
images/codeins_icon.png | 0.88KB | 1.03KB | 0.00% |