79% wp-foaas

Code Review | WP-FOAAS

WordPress plugin WP-FOAAS scored79%from 54 tests.

About plugin

  • Plugin page: wp-foaas
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.5.2
  • WordPress version: 6.3.1
  • First release: May 16, 2016
  • Latest release: May 17, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: braindouche (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /499 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.58ms] Passed 4 tests

Server-side resources used by WP-FOAAS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0147.79 ▲2.06
Dashboard /wp-admin3.33 ▲0.0247.85 ▼6.16
Posts /wp-admin/edit.php3.38 ▲0.0251.94 ▼0.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.73 ▼9.91
Media Library /wp-admin/upload.php3.25 ▲0.0143.21 ▲5.84
WP_FOAAS Settings /wp-admin/options-general.php?page=wp_foaas3.19480.43

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

WP-FOAAS: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.74 ▲0.381.72 ▼0.3540.04 ▼2.94
Dashboard /wp-admin2,199 ▲195.60 ▼0.0684.47 ▼6.5138.83 ▼4.51
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0040.63 ▲1.6139.88 ▲2.28
Add New Post /wp-admin/post-new.php1,529 ▲323.55 ▲0.30678.68 ▼33.8965.81 ▲2.80
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.06100.55 ▼7.6342.16 ▼9.46
WP_FOAAS Settings /wp-admin/options-general.php?page=wp_foaas8981.9923.6029.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_foaas
    • > Warning in wp-content/plugins/wp-foaas/wp-foaas.php+117
    Invalid argument supplied for foreach()

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-foaas/wp-foaas.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
4 plugin tags: shortcodes, api, vulgarity, profanity

wp-foaas/wp-foaas.php Passed 13 tests

"WP-FOAAS" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
WP-FOAAS provides shortcode access to the F*ck Off As A Service API

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 plugin112 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22118100
Markdown15012

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 code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin