94% firepress

Code Review | Firepress

WordPress plugin Firepress scored 94% from 54 tests.

About plugin

  • Plugin page: firepress
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 5.8.1
  • First release: Mar 25, 2016
  • Latest release: Jul 28, 2016
  • Number of updates: 5
  • Update frequency: every 25.0 days
  • Top authors: michaelandrewauer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,388 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼141.73ms] Passed 4 tests

A check of server-side resources used by Firepress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0131.85 ▲3.00
Dashboard /wp-admin3.07 ▲0.0142.68 ▲0.84
Posts /wp-admin/edit.php3.12 ▲0.0136.80 ▼6.73
Add New Post /wp-admin/post-new.php5.42 ▼0.0184.02 ▼560.76
Media Library /wp-admin/upload.php3.01 ▲0.0132.77 ▼0.27

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Firepress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,730 ▲13416.24 ▲0.6111.07 ▲0.4948.88 ▲1.36
Dashboard /wp-admin3,017 ▲866.56 ▲0.60143.17 ▲5.22108.52 ▼3.01
Posts /wp-admin/edit.php2,767 ▲283.00 ▲0.2767.89 ▲4.5090.99 ▼4.59
Add New Post /wp-admin/post-new.php1,636 ▼4722.11 ▲3.35275.91 ▼98.26124.76 ▲17.48
Media Library /wp-admin/upload.php1,835 ▲285.37 ▲0.34129.39 ▼18.46118.44 ▼3.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/firepress/index.php:31

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: firebase, dashboard

firepress/index.php 92% from 13 tests

The entry point to "Firepress" version 1.0 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 ("firepress.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin69 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19934
PHP16820
CSS12015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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