93% f13-wp-plugin-shortcode

Code Review | F13 WordPress

WordPress plugin F13 WordPress scored 93% from 54 tests.

About plugin

  • Plugin page: f13-wp-plugin-sho...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Oct 22, 2021
  • Latest release: Oct 30, 2021
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: f13dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 44 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼146.62ms] Passed 4 tests

An overview of server-side resources used by F13 WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0339.79 ▲4.07
Dashboard /wp-admin3.08 ▲0.0251.07 ▲9.60
Posts /wp-admin/edit.php3.13 ▲0.0249.19 ▼0.65
Add New Post /wp-admin/post-new.php5.44 ▲0.0096.86 ▼587.35
Media Library /wp-admin/upload.php3.02 ▲0.0232.53 ▼2.56

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for F13 WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲13315.75 ▼0.3912.05 ▲2.7348.15 ▲3.21
Dashboard /wp-admin2,970 ▲395.93 ▼0.01152.19 ▼1.55112.03 ▼5.14
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0066.90 ▼14.9089.30 ▼2.38
Add New Post /wp-admin/post-new.php1,683 ▼016.28 ▼2.45461.68 ▲33.58113.81 ▲0.92
Media Library /wp-admin/upload.php1,810 ▲35.02 ▼0.01165.52 ▲1.63117.30 ▼18.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/f13-wp-plugin-shortcode/f13-wordpress.php on line 14
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/f13-wp-plugin-shortcode/f13-wordpress.php on line 14
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/f13-wp-plugin-shortcode/f13-wordpress.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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 your attention: You can take inspiration from this readme.txt

f13-wp-plugin-shortcode/f13-wordpress.php 85% from 13 tests

The entry point to "F13 WordPress" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("f13-wp-plugin-shortcode.php" instead of "f13-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected266 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4359236
CSS10030

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.25
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin