90% flexistatic

Code Review | FlexiStatic

WordPress plugin FlexiStatic scored90%from 54 tests.

About plugin

  • Plugin page: flexistatic
  • Plugin version: 2.1.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: Aug 8, 2023
  • Number of updates: 21
  • Update frequency: every 116.3 days
  • Top authors: 3UU (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,454 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.49ms] Passed 4 tests

A check of server-side resources used by FlexiStatic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.11 ▼4.17
Dashboard /wp-admin3.38 ▲0.0745.78 ▼4.78
Posts /wp-admin/edit.php3.43 ▲0.0749.01 ▼0.60
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.21 ▼12.40
Media Library /wp-admin/upload.php3.30 ▲0.0734.84 ▲0.38

Server storage [IO: ▲0.03MB] [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
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for FlexiStatic
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.81 ▲0.431.81 ▲0.1439.20 ▲1.08
Dashboard /wp-admin2,225 ▲434.99 ▼0.04108.49 ▲2.4442.98 ▼2.42
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0540.17 ▲4.3935.82 ▲4.85
Add New Post /wp-admin/post-new.php6,236 ▲4,71726.21 ▲3.24917.54 ▲236.4954.82 ▼2.23
Media Library /wp-admin/upload.php1,404 ▲164.24 ▲0.0796.50 ▼11.9942.73 ▼2.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: static page, performance

flexistatic/flexistatic.php Passed 13 tests

The entry point to "FlexiStatic" version 2.1.4 is a PHP file that has certain tags in its header comment area
32 characters long description:
Make real static posts flexible.

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
Success! There were no dangerous files found in this plugin277 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP154142230
PO File1143147

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions12
▷ Named functions12100.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
No PNG images were found in this plugin