Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.81MB] [CPU: ▲280.58ms] 75% from 4 tests
Server-side resources used by YesNology WordPress Plugin
It is recommended to improve the following
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 280.58ms on /wp-admin/admin.php?page=yesnology_display)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.07 | 307.98 ▲267.57 |
Dashboard /wp-admin | 3.13 ▼0.17 | 364.03 ▲310.76 |
Posts /wp-admin/edit.php | 3.13 ▼0.22 | 350.64 ▲306.93 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.76 | 334.83 ▲237.07 |
Media Library /wp-admin/upload.php | 3.13 ▼0.10 | 677.13 ▲641.95 |
Setup /wp-admin/admin.php?page=yesnology | 3.13 | 352.77 |
Design /wp-admin/admin.php?page=yesnology_display | 3.13 | 360.77 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for YesNology WordPress Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲174 | 14.47 ▲0.06 | 29.44 ▲27.30 | 42.00 ▼1.31 |
Dashboard /wp-admin | 2,223 ▲34 | 4.87 ▼0.26 | 106.91 ▼16.48 | 73.93 ▲28.05 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 1.98 ▼0.01 | 34.91 ▼3.67 | 33.93 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.31 ▲0.12 | 734.89 ▲62.98 | 56.59 ▲1.46 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.19 ▼0.05 | 95.87 ▼4.65 | 73.14 ▲27.83 |
Setup /wp-admin/admin.php?page=yesnology | 933 | 2.04 | 27.12 | 27.98 |
Design /wp-admin/admin.php?page=yesnology_display | 1,559 | 6.84 | 131.77 | 98.90 |
Uninstaller [IO: ▲1.81MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsThis plugin did not uninstall successfully, leaving 6 options in the database
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/yesnology/admin/class-yesnology-admin.php+126
Undefined property: stdClass::$access_token
- Uninstaller has failed for this plugin, leaving 41 files (1.81MB) in the plugin directory
- (new file) LICENSE.txt
- (new file) README.txt
- (new file) admin/submenu_page.php
- (new file) admin/index.php
- (new file) admin/partials/yesnology-admin-display.php
- (new file) admin/css/yesnology-admin.css
- (new file) admin/class-yesnology-admin.php
- (new file) admin/logo-compatto.png
- (new file) admin/js/yesnology-admin.js
- (new file) includes/class-yesnology-activator.php
- ...
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=yesnology_display
- > Notice in wp-content/plugins/yesnology/admin/class-yesnology-admin.php+126
Undefined property: stdClass::$access_token
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=yesnology
- > Warning in wp-content/plugins/yesnology/admin/submenu_page.php+105
Invalid argument supplied for foreach()
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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/yesnology/public/partials/yesnology-public-display.php
- > /wp-content/plugins/yesnology/admin/partials/yesnology-admin-display.php
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)
There were no browser issues found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Invalid URI found ("")
- Requires php: Invalid plugin version format
- Screenshots: Add descriptions for screenshots #1, #2, #3 in yesnology/assets to your readme.txt
yesnology/yesnology.php 77% from 13 tests
The main file in "YesNology WordPress Plugin" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.0.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 811 characters long)
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,821 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 215 | 774 | 995 |
PO File | 4 | 132 | 171 | 439 |
JavaScript | 6 | 13 | 99 | 200 |
CSS | 5 | 25 | 48 | 187 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 19.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 8 | 14.55% |
▷ Public methods | 42 | 76.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 23.64% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
public/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
admin/logo-compatto.png | 0.89KB | 1.27KB | 0.00% |