Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.74ms] Passed 4 tests
Server-side resources used by WordPen
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.20 ▼1.76 |
Dashboard /wp-admin | 3.43 ▲0.09 | 50.95 ▼13.37 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 49.11 ▲1.13 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 85.13 ▼12.26 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.01 ▲0.45 |
All WordPens /wp-admin/edit.php?post_type=wordpen | 3.40 | 38.72 |
Add New /wp-admin/post-new.php?post_type=wordpen | 3.39 | 46.53 |
Server storage [IO: ▲4.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 566 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPen
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.59 ▲0.19 | 2.12 ▲0.40 | 44.85 ▲2.60 |
Dashboard /wp-admin | 2,220 ▲43 | 5.07 ▼0.45 | 92.53 ▼1.66 | 90.49 ▲45.74 |
Posts /wp-admin/edit.php | 2,140 ▲43 | 2.51 ▲0.49 | 39.43 ▲1.35 | 34.10 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,563 ▲35 | 23.25 ▼0.03 | 670.71 ▼16.07 | 37.75 ▼23.60 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.62 ▲0.35 | 99.61 ▼5.61 | 82.10 ▲35.53 |
All WordPens /wp-admin/edit.php?post_type=wordpen | 1,114 | 2.46 | 33.83 | 29.12 |
Add New /wp-admin/post-new.php?post_type=wordpen | 1,719 | 3.25 | 64.03 | 70.13 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpen/wordpen.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
2 plugin tags: codepen, snippets
wordpen/wordpen.php Passed 13 tests
This is the main PHP file of "WordPen" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Embed pens from CodePen without the 'edit' frame
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin93,937 lines of code in 552 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 297 | 7,251 | 5,497 | 63,893 |
HTML | 182 | 3,763 | 11 | 22,481 |
PHP | 3 | 704 | 416 | 4,037 |
CSS | 63 | 441 | 250 | 2,478 |
Markdown | 3 | 384 | 0 | 812 |
SVG | 1 | 1 | 1 | 179 |
JSON | 1 | 0 | 0 | 48 |
Bourne Shell | 1 | 0 | 1 | 5 |
YAML | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 117.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 467.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.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 | 254 | |
▷ Static methods | 37 | 14.57% |
▷ Public methods | 68 | 26.77% |
▷ Protected methods | 184 | 72.44% |
▷ Private methods | 2 | 0.79% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 61.81KB | 25.12KB | ▼ 59.37% |
icon.png | 0.87KB | 0.82KB | ▼ 4.97% |
js/codemirror/doc/logo.png | 9.09KB | 4.10KB | ▼ 54.95% |
js/codemirror/doc/yinyang.png | 4.52KB | 2.03KB | ▼ 55.19% |
screenshot-2.png | 88.85KB | 36.09KB | ▼ 59.38% |