Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼141.83ms] Passed 4 tests
An overview of server-side resources used by Post Likerator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 39.09 ▲13.92 |
Dashboard /wp-admin | 3.11 ▲0.05 | 49.85 ▼3.05 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 48.24 ▼4.92 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 96.60 ▼548.72 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 37.05 ▼10.62 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: 1 new table, no new options
New tables |
---|
wp_post_likerator_likes |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Likerator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,819 ▲213 | 16.14 ▲0.59 | 9.96 ▼2.15 | 51.68 ▼3.34 |
Dashboard /wp-admin | 2,989 ▲55 | 5.96 ▼0.03 | 140.92 ▼4.90 | 116.89 ▲0.34 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.69 ▲0.00 | 72.77 ▲3.65 | 100.33 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,594 ▼89 | 18.84 ▲1.42 | 400.38 ▲18.80 | 118.83 ▲4.33 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▼0.03 | 162.95 ▲16.33 | 131.56 ▲7.82 |
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
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_post_likerator_likes
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-likerator/library/main.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: like, like posts, thumbs up, developer friendly
post-likerator/post-likerator.php 92% from 13 tests
The main PHP file in "Post Likerator" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin287 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 76 | 71 | 250 |
JavaScript | 1 | 7 | 0 | 37 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 24 | |
▷ Static methods | 4 | 16.67% |
▷ Public methods | 20 | 83.33% |
▷ Protected methods | 3 | 12.50% |
▷ Private methods | 1 | 4.17% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin