Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼13.53ms] Passed 4 tests
An overview of server-side resources used by Meritocracy - Near-Powered Gamification Plugin for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.48 ▼6.92 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.20 ▼17.22 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 41.93 ▼6.20 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.92 ▼23.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.23 ▼2.36 |
Server storage [IO: ▲0.61MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Meritocracy - Near-Powered Gamification Plugin for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▲0.00 | 1.63 ▲0.14 | 39.84 ▲1.07 |
Dashboard /wp-admin | 2,195 ▲21 | 5.51 ▼0.06 | 84.29 ▼1.45 | 38.70 ▼2.41 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.09 | 34.80 ▲0.63 | 33.61 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.97 ▼0.07 | 664.19 ▲28.41 | 52.95 ▼1.35 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.13 ▼0.05 | 99.63 ▲2.76 | 41.90 ▼0.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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/meritocracy/meritocracy.php:117
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #7 (**Buying points with Near coins")
- Tags: You are using too many tags: 12 tag instead of maximum 10
meritocracy/meritocracy.php Passed 13 tests
"Meritocracy - Near-Powered Gamification Plugin for WordPress" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
93 characters long description:
Expands the buyCred and cashCred add-on in myCred to allow points exchanges via MyNearWallet.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin14,315 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,938 | 1,882 | 13,718 |
PHP | 3 | 301 | 238 | 597 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 44 | |
▷ Static methods | 4 | 9.09% |
▷ Public methods | 41 | 93.18% |
▷ Protected methods | 1 | 2.27% |
▷ Private methods | 2 | 4.55% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/meritocracy-logo.png | 3.10KB | 1.97KB | ▼ 36.51% |
assets/images/near.png | 2.12KB | 2.21KB | 0.00% |