Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.48MB] [CPU: ▼15.64ms] Passed 4 tests
This is a short check of server-side resources used by PageApp
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 39.28 ▼10.83 |
Dashboard /wp-admin | 3.49 ▲0.18 | 53.17 ▲1.36 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 50.33 ▼0.64 |
Add New Post /wp-admin/post-new.php | 3.48 ▼2.41 | 38.30 ▼52.46 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 36.42 ▲1.96 |
Roku /wp-admin/admin.php?page=pageapp-roku | 3.38 | 36.61 |
Post Meta /wp-admin/admin.php?page=pageapp-meta | 3.38 | 32.11 |
Fire TV /wp-admin/admin.php?page=pageapp-fire-tv | 3.38 | 33.47 |
PageApp /wp-admin/admin.php?page=pageapp | 3.36 | 32.22 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
pa_version |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
PageApp: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲83 | 14.54 ▲0.29 | 1.86 ▲0.08 | 35.72 ▼7.88 |
Dashboard /wp-admin | 2,213 ▲33 | 5.52 ▼0.11 | 91.23 ▼1.98 | 68.44 ▲29.70 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 1.96 ▲0.01 | 38.88 ▲0.25 | 33.77 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.26 ▲0.24 | 740.83 ▲45.23 | 56.28 ▼5.73 |
Media Library /wp-admin/upload.php | 1,433 ▲42 | 4.18 ▼0.03 | 92.55 ▼12.48 | 70.46 ▲26.16 |
Roku /wp-admin/admin.php?page=pageapp-roku | 1,057 | 2.01 | 30.96 | 23.73 |
Post Meta /wp-admin/admin.php?page=pageapp-meta | 863 | 2.08 | 29.28 | 29.25 |
Fire TV /wp-admin/admin.php?page=pageapp-fire-tv | 922 | 2.06 | 27.11 | 24.98 |
PageApp /wp-admin/admin.php?page=pageapp | 935 | 2.07 | 27.23 | 27.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- pa_version
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pageapp
- > Notice in wp-content/plugins/pageapp/inc/settingslib.php+122
Undefined property: stdClass::$description
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
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 add_action() in wp-content/plugins/pageapp/pageapp.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pageapp/pageapp-json.php:5
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: rest api, api, post meta, post, meta...
pageapp/pageapp.php Passed 13 tests
"PageApp" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Extensions to Wordpress wp-json for the PageApp API and mobile framework
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,668 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 67 | 140 | 1,665 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 30.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 73 | 45.34% |
▷ Public methods | 148 | 91.93% |
▷ Protected methods | 10 | 6.21% |
▷ Private methods | 3 | 1.86% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pageapp20.png | 6.27KB | 0.88KB | ▼ 85.95% |