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.17MB] [CPU: ▼1.42ms] Passed 4 tests
Server-side resources used by Flynax Bridge
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 40.97 ▼1.23 |
Dashboard /wp-admin | 3.47 ▲0.17 | 48.96 ▼1.99 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.95 ▲5.43 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.16 | 84.20 ▼3.49 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 36.74 ▲1.03 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
flb_flynax_listings |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_fl_bridge_featured_listings |
Browser metrics Passed 4 tests
A check of browser resources used by Flynax Bridge
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲57 | 14.05 ▼0.32 | 1.75 ▲0.04 | 41.80 ▼2.34 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.02 | 84.63 ▼11.99 | 40.62 ▼3.48 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 34.30 ▼3.25 | 31.17 ▼4.44 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.48 ▼0.03 | 640.52 ▲48.36 | 65.87 ▲27.37 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▲0.02 | 97.62 ▲1.78 | 41.89 ▼3.57 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: listings in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/fl-listings.php on line 8
- > PHP Notice
Undefined variable: errors in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/errors.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/form.php:52
- > PHP Fatal error
Trait 'Flynax\\Plugins\\FlynaxBridge\\Traits\\SingletonTrait' not found in wp-content/plugins/flynax-bridge/src/Request.php on line 14
- > PHP Notice
Undefined variable: widgetTitle in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/fl-listings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flynax-bridge/flynax-bridge.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/fl-listings.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/fl-listings.php:29
- > PHP Notice
Undefined variable: args in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/fl-listings.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flynax-bridge/src/Widgets/FeaturedListings.php:19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: ads script, classifieds, flynax bridge, flynax, classifieds ads...
flynax-bridge/flynax-bridge.php Passed 13 tests
This is the main PHP file of "Flynax Bridge" version 2.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
13 characters long description:
Flynax Bridge
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,648 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 338 | 826 | 1,447 |
PO File | 2 | 32 | 64 | 90 |
CSS | 2 | 13 | 0 | 65 |
JavaScript | 1 | 1 | 3 | 34 |
JSON | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 40 | 38.46% |
▷ Public methods | 101 | 97.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.88% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected