84% wp-atomic-content

Code Review | WP atomic content

WordPress plugin WP atomic content scored 84% from 54 tests.

About plugin

  • Plugin page: wp-atomic-content
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Apr 23, 2016
  • Latest release: Mar 10, 2017
  • Number of updates: 9
  • Update frequency: every 35.7 days
  • Top authors: partage-it (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 984 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.10ms] Passed 4 tests

An overview of server-side resources used by WP atomic content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.12 ▼11.33
Dashboard /wp-admin3.35 ▲0.0447.44 ▼3.33
Posts /wp-admin/edit.php3.40 ▲0.0449.59 ▲2.99
Add New Post /wp-admin/post-new.php5.93 ▲0.04102.97 ▲7.82
Media Library /wp-admin/upload.php3.27 ▲0.0438.38 ▲7.28
Add New /wp-admin/post-new.php?post_type=atomic_block3.3951.36
All blocks /wp-admin/edit.php?post_type=atomic_block3.3138.19

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP atomic content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6713.65 ▼0.581.66 ▼0.7540.15 ▼4.88
Dashboard /wp-admin2,230 ▲394.86 ▼0.0399.71 ▼15.8039.18 ▼7.58
Posts /wp-admin/edit.php2,113 ▲212.03 ▲0.0339.39 ▲2.4834.44 ▲0.65
Add New Post /wp-admin/post-new.php1,558 ▲4423.51 ▲5.86646.01 ▼34.9650.92 ▼0.54
Media Library /wp-admin/upload.php1,415 ▲244.19 ▼0.05108.58 ▲10.5147.38 ▲5.88
Add New /wp-admin/post-new.php?post_type=atomic_block2,3577.58176.7865.16
All blocks /wp-admin/edit.php?post_type=atomic_block1,0931.9332.5635.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-atomic-content/wp-atomic-content.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: page, post, content

wp-atomic-content/wp-atomic-content.php Passed 13 tests

The primary PHP file in "WP atomic content" version 1.0.3 is used by WordPress to initiate all plugin functionality
68 characters long description:
Add possibility to create content blocks to add in posts, pages, ...

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
Success! There were no dangerous files found in this plugin167 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12015121
Markdown132046

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions7
▷ Named functions7100.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 files were detected