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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼298.37ms] Passed 4 tests
Analyzing server-side resources used by Cornerstone Custom Icons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 51.99 ▲2.05 |
Dashboard /wp-admin | 3.53 ▲0.13 | 36.45 ▲4.85 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 36.98 ▼1.62 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.03 | 93.30 ▼1,192.96 |
Media Library /wp-admin/upload.php | 3.41 ▲0.12 | 24.70 ▼0.96 |
Custom Icons /wp-admin/admin.php?page=cornerstone_icons_settings | 3.58 | 26.57 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Cornerstone Custom Icons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,772 ▲18 | 16.25 ▲0.28 | 5.54 ▼1.16 | 2.35 ▼0.57 |
Dashboard /wp-admin | 2,903 ▲52 | 6.07 ▼0.09 | 115.19 ▼19.77 | 156.45 ▼1.01 |
Posts /wp-admin/edit.php | 2,703 ▲9 | 3.38 ▲0.14 | 64.03 ▼1.93 | 138.84 ▼4.83 |
Add New Post /wp-admin/post-new.php | 1,791 ▲80 | 19.37 ▼1.78 | 384.91 ▼104.32 | 156.03 ▼4.16 |
Media Library /wp-admin/upload.php | 1,707 ▲12 | 5.58 ▲0.07 | 143.24 ▼1.22 | 186.79 ▼5.30 |
Custom Icons /wp-admin/admin.php?page=cornerstone_icons_settings | 1,696 | 2.75 | 53.56 | 151.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/cornerstone-custom-icons/uninstall.php+45
unlink(wp-content/uploads/cornerstone_icons_files/merged-icons-font.css): No such file or directory
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)
Good news, no errors were detected
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
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 plugin_dir_url() in wp-content/plugins/cornerstone-custom-icons/cornerstone-custom-icons.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: themeco, pro theme, x theme, fontello, images...
cornerstone-custom-icons/cornerstone-custom-icons.php Passed 13 tests
The main PHP script in "Cornerstone Custom Icons" version 0.2.2 is automatically included on every request by WordPress
84 characters long description:
Add custom icon fonts and SVGs to the built in Cornerstone and Pro elements controls
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,575 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 241 | 225 | 659 |
CSS | 1 | 73 | 3 | 507 |
SVG | 1 | 40 | 27 | 165 |
JavaScript | 1 | 57 | 6 | 155 |
PO File | 1 | 24 | 24 | 89 |
PHP code Passed 2 tests
An short overview of 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.41 |
Average class complexity | 24.67 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 16 | 66.67% |
▷ Protected methods | 5 | 20.83% |
▷ Private methods | 3 | 12.50% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/font.png | 0.30KB | 0.23KB | ▼ 23.87% |
assets/pp-acceptance-large.png | 4.31KB | 2.11KB | ▼ 50.94% |