Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.60MB] [CPU: ▼13.54ms] Passed 4 tests
Analyzing server-side resources used by Skyword Publishing API
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 48.08 ▲9.36 |
Dashboard /wp-admin | 3.43 ▲0.13 | 45.83 ▲0.19 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.07 ▲1.75 |
Add New Post /wp-admin/post-new.php | 3.24 ▼2.64 | 35.28 ▼56.76 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.64 ▲0.66 |
Skyword API /wp-admin/options-general.php?page=skyword_api_menu | 3.26 | 31.25 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
skyword_api_plugin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Skyword Publishing API
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲7 | 14.23 ▼0.12 | 1.71 ▼0.05 | 43.82 ▲5.15 |
Dashboard /wp-admin | 2,202 ▲31 | 5.68 ▲0.14 | 96.55 ▼4.89 | 42.06 ▲0.22 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.06 | 40.67 ▼2.06 | 36.46 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.22 ▼0.32 | 674.05 ▲65.78 | 53.82 ▲5.27 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▲0.00 | 95.50 ▼8.04 | 42.06 ▼0.20 |
Skyword API /wp-admin/options-general.php?page=skyword_api_menu | 966 | 2.00 | 24.17 | 31.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- skyword_api_plugin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/skyword-publishing-api/php/class-skyword-publish.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skyword-publishing-api/php/options.php:3
- > PHP Fatal error
Uncaught Error: Class 'Skyword_API_Publish' not found in wp-content/plugins/skyword-publishing-api/php/routes/class-skyword-version.php:9
- > PHP Fatal error
Uncaught Error: Class 'Skyword_API_Publish' not found in wp-content/plugins/skyword-publishing-api/php/routes/class-skyword-content-types.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skyword-publishing-api/php/class-skyword-sitemaps.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/skyword-publishing-api/php/class-skyword-opengraph.php:9
- > PHP Fatal error
Uncaught Error: Class 'Skyword_API_Publish' not found in wp-content/plugins/skyword-publishing-api/php/routes/class-skyword-posts.php:9
- > PHP Fatal error
Uncaught Error: Class 'Skyword_API_Publish' not found in wp-content/plugins/skyword-publishing-api/php/routes/class-skyword-images.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/skyword-publishing-api/php/class-skyword-shortcode.php:5
- > PHP Fatal error
Uncaught Error: Class 'Skyword_API_Publish' not found in wp-content/plugins/skyword-publishing-api/php/routes/class-skyword-categories.php:9
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: api, skyword
skyword-publishing-api/skyword.php 92% from 13 tests
This is the main PHP file of "Skyword Publishing API" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("skyword-publishing-api.php" instead of "skyword.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,110 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 386 | 471 | 2,079 |
JSON | 1 | 0 | 0 | 12 |
JavaScript | 1 | 0 | 0 | 11 |
CSS | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 19.31 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 73.17% |
▷ Protected methods | 15 | 18.29% |
▷ Private methods | 7 | 8.54% |
Functions | 33 | |
▷ Named functions | 20 | 60.61% |
▷ Anonymous functions | 13 | 39.39% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 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
PNG images were not found in this plugin