Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼138.76ms] Passed 4 tests
Analyzing server-side resources used by Social Archiver
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.29 | 40.71 ▲15.81 |
Dashboard /wp-admin | 3.30 ▲0.24 | 49.61 ▼1.78 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 49.88 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.16 | 94.38 ▼570.19 |
Media Library /wp-admin/upload.php | 3.19 ▲0.18 | 47.63 ▲16.57 |
Add New /wp-admin/post-new.php?post_type=sa_twitter | 3.35 | 54.70 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sa_twitter | 3.18 | 30.26 |
All Tweets /wp-admin/edit.php?post_type=sa_twitter | 3.23 | 33.81 |
Social Archiver /wp-admin/options-general.php?page=social_archiver | 3.16 | 31.74 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Archiver
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,752 ▲156 | 15.81 ▲0.20 | 11.93 ▲1.52 | 52.46 ▲1.87 |
Dashboard /wp-admin | 3,009 ▲75 | 5.90 ▼0.13 | 141.70 ▼17.78 | 118.62 ▲2.52 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.69 ▼0.00 | 71.38 ▲0.74 | 97.98 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,712 ▲29 | 15.57 ▼3.18 | 432.31 ▲35.52 | 136.66 ▲27.01 |
Media Library /wp-admin/upload.php | 1,793 ▼14 | 5.02 ▼0.01 | 196.31 ▲22.01 | 144.59 ▲21.83 |
Add New /wp-admin/post-new.php?post_type=sa_twitter | 3,146 | 9.14 | 233.52 | 159.64 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sa_twitter | 1,871 | 2.51 | 63.05 | 82.66 |
All Tweets /wp-admin/edit.php?post_type=sa_twitter | 1,450 | 2.61 | 68.69 | 83.52 |
Social Archiver /wp-admin/options-general.php?page=social_archiver | 1,217 | 2.09 | 60.09 | 91.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/social-archiver/social-archiver.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/social-archiver/uninstall.php:5
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (All your publication are saved in a custom post type, allowing you to easily find them.) image not found
social-archiver/social-archiver.php Passed 13 tests
"Social Archiver" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
21 characters long description:
Save your social life
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,032 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 251 | 464 | 882 |
PO File | 1 | 37 | 44 | 123 |
JSON | 2 | 0 | 0 | 17 |
Markdown | 1 | 9 | 0 | 10 |
PHP code Passed 2 tests
Analyzing 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.35 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 4 | 6.45% |
▷ Public methods | 50 | 80.65% |
▷ Protected methods | 11 | 17.74% |
▷ Private methods | 1 | 1.61% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 112.83KB | 53.86KB | ▼ 52.26% |