84% wp-foundation-5-styles

Code Review | WP Foundation 5 Styles

WordPress plugin WP Foundation 5 Styles scored84%from 54 tests.

About plugin

  • Plugin page: wp-foundation-5-s...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.0
  • WordPress version: 6.3.1
  • First release: Apr 28, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 11
  • Update frequency: every 12.1 days
  • Top authors: thewirelessguy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,560 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
Installer ran successfully

Server metrics [RAM: ▼0.24MB] [CPU: ▼10.78ms] Passed 4 tests

This is a short check of server-side resources used by WP Foundation 5 Styles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.17 ▲0.65
Dashboard /wp-admin3.33 ▲0.0343.17 ▼4.82
Posts /wp-admin/edit.php3.38 ▲0.0344.86 ▼3.45
Add New Post /wp-admin/post-new.php4.83 ▼1.0663.58 ▼35.50
Media Library /wp-admin/upload.php3.26 ▲0.0335.60 ▲3.35

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Foundation 5 Styles
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.73 ▼0.941.78 ▼0.2444.13 ▼0.15
Dashboard /wp-admin2,209 ▲244.85 ▼0.0497.79 ▼13.5138.53 ▼3.88
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0239.06 ▼3.4136.23 ▲0.58
Add New Post /wp-admin/post-new.php1,542 ▲2818.52 ▲0.87604.17 ▼84.9570.69 ▲15.85
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.1095.89 ▼15.5740.51 ▼9.55

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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× 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/wp-foundation-5-styles/foundation5-styles.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 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: wysiwyg, tinymce, foundation, zurb, foundation 5...

wp-foundation-5-styles/foundation5-styles.php 92% from 13 tests

The entry point to "WP Foundation 5 Styles" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-foundation-5-styles.php" instead of "foundation5-styles.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin90 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1161072
Markdown116017
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods350.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin