84% reaktiv-css-builder

Code Review | Reaktiv CSS Builder

WordPress plugin Reaktiv CSS Builder scored84%from 54 tests.

About plugin

  • Plugin page: reaktiv-css-builder
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2
  • WordPress version: 6.3.1
  • First release: Dec 27, 2013
  • Latest release: Jul 20, 2015
  • Number of updates: 6
  • Update frequency: every 95.0 days
  • Top authors: norcross (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,920 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼2.43ms] Passed 4 tests

A check of server-side resources used by Reaktiv CSS Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.98 ▼5.75
Dashboard /wp-admin3.33 ▲0.0257.82 ▲4.10
Posts /wp-admin/edit.php3.38 ▲0.0249.93 ▲1.11
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.07 ▼5.74
Media Library /wp-admin/upload.php3.25 ▲0.0237.11 ▲0.67
CSS Builder /wp-admin/themes.php?page=reaktiv-custom-css3.2233.49

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Reaktiv CSS Builder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.011.83 ▲0.1144.37 ▼2.57
Dashboard /wp-admin2,202 ▲225.56 ▼0.0886.07 ▼6.7535.64 ▼3.32
Posts /wp-admin/edit.php2,101 ▲41.95 ▼0.0233.50 ▼4.4734.42 ▼4.45
Add New Post /wp-admin/post-new.php1,529 ▼123.20 ▲0.21654.31 ▼47.1851.04 ▲2.11
Media Library /wp-admin/upload.php1,404 ▲44.24 ▲0.0293.91 ▼14.2941.39 ▼5.03
CSS Builder /wp-admin/themes.php?page=reaktiv-custom-css9952.3535.0844.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 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/reaktiv-css-builder/reaktiv-css-builder.php:39

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: css, custom design

reaktiv-css-builder/reaktiv-css-builder.php Passed 13 tests

The main PHP file in "Reaktiv CSS Builder" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
30 characters long description:
Make simple CSS customizations

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
Good job! No executable or dangerous file extensions detected6,207 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36304245,644
PHP1192161275
CSS23221227
PO File1202061

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods316.67%
▷ Public methods18100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin