84% foundation-shortcodes

Code Review | Foundation Shortcodes

WordPress plugin Foundation Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: foundation-shortc...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2015
  • Latest release: Apr 2, 2015
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: Oyova (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /964 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.22ms] Passed 4 tests

Server-side resources used by Foundation Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.14 ▲1.02
Dashboard /wp-admin3.33 ▲0.0357.62 ▲4.94
Posts /wp-admin/edit.php3.38 ▲0.0350.15 ▼5.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.27 ▼4.42
Media Library /wp-admin/upload.php3.26 ▲0.0337.79 ▲0.19

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Foundation Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.191.62 ▼0.6744.65 ▼6.51
Dashboard /wp-admin2,198 ▲245.65 ▼0.0288.13 ▼12.0240.47 ▼2.82
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0234.75 ▼2.1233.48 ▼3.48
Add New Post /wp-admin/post-new.php1,526 ▼022.76 ▼0.53628.71 ▼79.3853.16 ▼8.08
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.00106.63 ▲6.3146.35 ▲1.50

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/foundation-shortcodes/foundation-shortcodes.php:16

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === foundation-shortcodes === )
Please take inspiration from this readme.txt

foundation-shortcodes/foundation-shortcodes.php Passed 13 tests

The main PHP file in "Foundation Shortcodes" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
122 characters long description:
Craft Foundation markup, including rows and columns, using WordPress shortcodes. Requires a theme built with Foundation 5.

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
There were no executable files found in this plugin120 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13425120

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions14
▷ Named functions14100.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
PNG images were not found in this plugin