Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.01ms] Passed 4 tests
An overview of server-side resources used by Sch.gr Commons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.56 ▼3.20 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.04 ▼6.95 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 56.55 ▲6.60 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.41 ▼13.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 38.49 ▲0.07 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Sch.gr Commons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.16 | 1.84 ▼0.12 | 44.41 ▲3.83 |
Dashboard /wp-admin | 2,206 ▲15 | 4.81 ▼0.31 | 105.62 ▼3.89 | 38.61 ▼5.50 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.05 | 33.91 ▼4.84 | 33.38 ▲0.34 |
Add New Post /wp-admin/post-new.php | 1,533 ▼14 | 23.13 ▲4.96 | 652.26 ▲42.79 | 51.28 ▼7.78 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.30 ▲0.01 | 99.98 ▼10.06 | 41.05 ▼2.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/schgr-commons/sch_gr_commons.php:18
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
- Screenshots: Please add images for these screenshots: #1 (Copy the url from a video.sch.gr video), #2 (Paste a simple url in post), #3 (The resulted embed video from https://video.sch.gr into the post.), #4 (Copy school's location link from https://maps.sch.gr)
schgr-commons/sch_gr_commons.php 77% from 13 tests
"Sch.gr Commons" version 4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WordPress 4.6")
- Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("schgr-commons.php" instead of "sch_gr_commons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected102 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 37 | 54 |
PO File | 2 | 24 | 42 | 48 |
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.07 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.82MB with 0.55MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 206.07KB | 64.42KB | ▼ 68.74% |
screenshot-2.png | 42.62KB | 15.97KB | ▼ 62.54% |
screenshot-4.png | 185.25KB | 59.97KB | ▼ 67.63% |
screenshot-3.png | 406.50KB | 127.27KB | ▼ 68.69% |