Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/ideapress-json-api/models/post.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Post has a deprecated constructor
Server metrics [RAM: ▼1.73MB] [CPU: ▼56.79ms] Passed 4 tests
This is a short check of server-side resources used by IdeaPress - Turn WordPress into Mobile Apps (Android, iPhone, WinPhone)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 5.93 ▼35.39 |
Dashboard /wp-admin | 2.29 ▼1.06 | 7.70 ▼54.10 |
Posts /wp-admin/edit.php | 2.29 ▼1.07 | 9.00 ▼38.34 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.60 | 6.57 ▼99.34 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 7.79 ▼22.50 |
IDEAPRESS JSON API /wp-admin/options-general.php?page=json-api | 2.29 | 6.86 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
IdeaPress - Turn WordPress into Mobile Apps (Android, iPhone, WinPhone): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.32 ▼0.25 | 1.72 ▼0.10 | 42.24 ▼6.65 |
Dashboard /wp-admin | 2,199 ▲19 | 5.57 ▼0.10 | 94.47 ▼4.80 | 45.07 ▲0.19 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▼0.08 | 35.94 ▼9.00 | 31.70 ▼4.75 |
Add New Post /wp-admin/post-new.php | 1,537 ▲8 | 18.22 ▼5.10 | 630.32 ▼4.46 | 77.41 ▲21.10 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.17 ▲0.01 | 105.27 ▲2.00 | 45.39 ▲4.66 |
IDEAPRESS JSON API /wp-admin/options-general.php?page=json-api | 1,078 | 2.00 | 25.75 | 32.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/ideapress-json-api/models/post.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Post has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/ideapress-json-api/models/post.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Post has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/ideapress-json-api/models/comment.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Comment has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/ideapress-json-api/models/category.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Category has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/ideapress-json-api/models/tag.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Tag has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/ideapress-json-api/models/author.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Author has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/ideapress-json-api/models/attachment.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Attachment has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=json-api
- > Notice in wp-content/plugins/ideapress-json-api/singletons/api.php+174
Undefined index: url
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 fix the following items
- 1× 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/ideapress-json-api/ideapress-json-api.php:99
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 23 tag instead of maximum 10
ideapress-json-api/ideapress-json-api.php Passed 13 tests
The main PHP script in "IdeaPress - Turn WordPress into Mobile Apps (Android, iPhone, WinPhone)" version 1.0.0 is automatically included on every request by WordPress
71 characters long description:
A RESTful API used by IdeaPress Multi-screen applications for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,496 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 402 | 376 | 2,496 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 27.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 117 | 94.35% |
▷ Protected methods | 7 | 5.65% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 22.90KB | 8.29KB | ▼ 63.82% |