84% cloudtables

Code Review | Embed CloudTables directly in WordPress

WordPress plugin Embed CloudTables directly in WordPress scored84%from 54 tests.

About plugin

  • Plugin page: cloudtables
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2020
  • Latest release: Nov 14, 2022
  • Number of updates: 12
  • Update frequency: every 73.4 days
  • Top authors: allanjardine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.39ms] Passed 4 tests

This is a short check of server-side resources used by Embed CloudTables directly in WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1341.45 ▲1.12
Dashboard /wp-admin3.44 ▲0.1347.04 ▲2.29
Posts /wp-admin/edit.php3.55 ▲0.1953.02 ▲4.18
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.14 ▼13.13
Media Library /wp-admin/upload.php3.37 ▲0.1340.46 ▲7.30
CloudTables /wp-admin/options-general.php?page=cloudtables3.3331.48

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Embed CloudTables directly in WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,135 ▲38923.53 ▲9.2431.85 ▲29.8039.94 ▼5.65
Dashboard /wp-admin2,295 ▲1049.74 ▲3.81120.59 ▲12.4954.37 ▲11.08
Posts /wp-admin/edit.php2,177 ▲918.49 ▲6.5075.12 ▲35.1536.37 ▼1.08
Add New Post /wp-admin/post-new.php6,368 ▲4,83527.35 ▲4.26778.10 ▲97.0240.00 ▼15.73
Media Library /wp-admin/upload.php1,498 ▲11011.15 ▲7.01125.52 ▲20.4740.61 ▼5.42
CloudTables /wp-admin/options-general.php?page=cloudtables1,0628.7860.9234.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cloudtables/cloudtables.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

cloudtables/cloudtables.php 92% from 13 tests

"Embed CloudTables directly in WordPress" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.5.0" instead of "5.4")

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
There were no executable files found in this plugin17,805 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JSON20016,800
PHP3136140644
SVG1131192
JavaScript3155108
CSS114161

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity48.50
▷ Minimum class complexity37.00
▷ Maximum class complexity60.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods311.11%
▷ Public methods2177.78%
▷ Protected methods00.00%
▷ Private methods622.22%
Functions12
▷ Named functions00.00%
▷ Anonymous functions12100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png9.75KB4.81KB▼ 50.64%