58% atom-builder

Code Review | Atom Builder

WordPress plugin Atom Builder scored 58% from 54 tests.

About plugin

  • Plugin page: atom-builder
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2017
  • Latest release: Dec 19, 2019
  • Number of updates: 6
  • Update frequency: every 143.8 days
  • Top authors: vincentdubroeucq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,149 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.21ms] Passed 4 tests

A check of server-side resources used by Atom Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.29 ▼0.95
Dashboard /wp-admin3.34 ▲0.0445.33 ▼2.96
Posts /wp-admin/edit.php3.45 ▲0.1052.05 ▼0.71
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.99 ▲2.27
Media Library /wp-admin/upload.php3.26 ▲0.0337.47 ▼0.22

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_atom_builder_post_widget
widget_recent-comments
widget_theysaidso_widget
widget_atom_builder_page_widget
widget_atom_builder_posts_widget

Browser metrics Passed 4 tests

A check of browser resources used by Atom Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.37 ▼1.011.71 ▼0.0837.62 ▼2.71
Dashboard /wp-admin2,200 ▲154.86 ▲0.03107.59 ▼8.5643.07 ▼3.99
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0141.69 ▲3.7334.94 ▲4.09
Add New Post /wp-admin/post-new.php1,533 ▲1223.21 ▼0.06655.30 ▼15.0561.40 ▲0.92
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.0296.33 ▼3.7341.50 ▼0.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Error in wp-content/plugins/atom-builder/uninstall.php+16
    Uncaught Error: Call to undefined function carbon_builder_cleanup_sidebars() in wp-content/plugins/atom-builder/uninstall.php:16
    Stack trace:
    #0 wp-admin/includes/plugin.php(1245): include_once()
    #1 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • This plugin has failed uninstalling correctly, leaving 23 files (0.08MB) in the plugin directory
    • (new file) css/atom-builder.css
    • (new file) languages/atom-builder-fr_FR.po
    • (new file) languages/atom-builder-fr_FR.mo
    • (new file) inc/userhelp-functions.php
    • (new file) inc/template-functions.php
    • (new file) inc/helper-functions.php
    • (new file) css/atom-builder.min.css
    • (new file) inc/cleanup-functions.php
    • (new file) atom-builder.php
    • (new file) inc/init-functions.php
    • ...
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_atom_builder_post_widget
    • can_compress_scripts
    • widget_atom_builder_posts_widget
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_atom_builder_page_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following
  • 7× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/atom-builder/inc/userhelp-functions.php
    • > /wp-content/plugins/atom-builder/uninstall.php
    • > /wp-content/plugins/atom-builder/inc/helper-functions.php
    • > /wp-content/plugins/atom-builder/atom-builder.php
    • > /wp-content/plugins/atom-builder/inc/init-functions.php
    • > /wp-content/plugins/atom-builder/inc/cleanup-functions.php
    • > /wp-content/plugins/atom-builder/inc/template-functions.php
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/atom-builder/widgets/atom-post.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/atom-builder/widgets/atom-posts.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/atom-builder/widgets/templates/widget-posts.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title() in wp-content/plugins/atom-builder/widgets/templates/widget-post.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title() in wp-content/plugins/atom-builder/widgets/templates/widget-page.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/atom-builder/widgets/atom-page.php:7

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)
No browser issues were 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
9 plugin tags: page builder, content, custom widgets, widget area, widgets...

atom-builder/atom-builder.php Passed 13 tests

The main file in "Atom Builder" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
This plugin enables you to painlessly build more complex layout, the WordPress Way.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,037 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP13383449780
PO File14042141
CSS699116

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity13.67
▷ Minimum class complexity12.00
▷ Maximum class complexity15.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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