73% textblox

Code Review | Powie's TextBlox

WordPress plugin Powie's TextBlox scored73%from 54 tests.

About plugin

  • Plugin page: textblox
  • Plugin version: 0.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 13, 2012
  • Latest release: Oct 31, 2018
  • Number of updates: 25
  • Update frequency: every 99.3 days
  • Top authors: PowieT (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,727 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
Install script ran successfully

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

Server-side resources used by Powie's TextBlox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0841.67 ▼2.06
Dashboard /wp-admin3.41 ▲0.0748.39 ▼8.64
Posts /wp-admin/edit.php3.53 ▲0.1348.27 ▼3.62
Add New Post /wp-admin/post-new.php5.99 ▲0.0789.49 ▼0.82
Media Library /wp-admin/upload.php3.33 ▲0.0654.37 ▲16.77
TextBlox Categories /wp-admin/edit-tags.php?taxonomy=textblox_category&post_type=textblox3.3336.13
TextBlox /wp-admin/edit.php?post_type=textblox3.3840.75
TextBlox Setup /wp-admin/options-general.php?page=textblox/textblox_settings.php3.3031.11
Add New /wp-admin/post-new.php?post_type=textblox3.4552.87

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
tb_version
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Powie's TextBlox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.35 ▼0.021.94 ▼0.1444.25 ▲1.63
Dashboard /wp-admin2,226 ▲465.51 ▼0.0993.89 ▼18.1184.42 ▲31.68
Posts /wp-admin/edit.php2,140 ▲402.00 ▲0.0136.83 ▼2.6932.70 ▼5.60
Add New Post /wp-admin/post-new.php1,576 ▲5023.01 ▲0.24663.22 ▼31.5559.96 ▼0.00
Media Library /wp-admin/upload.php1,434 ▲344.11 ▼0.07103.89 ▼19.1675.46 ▲22.10
TextBlox Categories /wp-admin/edit-tags.php?taxonomy=textblox_category&post_type=textblox1,3052.1326.7031.96
TextBlox /wp-admin/edit.php?post_type=textblox1,1211.9130.9528.55
TextBlox Setup /wp-admin/options-general.php?page=textblox/textblox_settings.php1,0525.42149.0543.09
Add New /wp-admin/post-new.php?post_type=textblox2,2617.55162.8296.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • tb_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/textblox/textbloxtinymce.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/textblox/textblox.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/textblox/textblox_settings.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=textblox/textblox_settings.php
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: templates, section, content, text, area...

textblox/textblox.php Passed 13 tests

The main PHP file in "Powie's TextBlox" ver. 0.9.6 adds more information about the plugin and also serves as the entry point for this plugin
90 characters long description:
Organize textblocks, sections, areas and insert it in your posts or pages using shortcodes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected368 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34286256
PO File1282875
JavaScript21337

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions11
▷ Named functions11100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
textblox_32.png1.50KB1.33KB▼ 10.89%
textblox_22.png1.19KB1.29KB0.00%
textblox_16.png0.41KB0.38KB▼ 5.06%