90% dataflexor

Code Review | DataFlexor

WordPress plugin DataFlexor scored90%from 54 tests.

About plugin

  • Plugin page: dataflexor
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.2.3
  • WordPress version: 6.3.1
  • First release: Jul 29, 2015
  • Latest release: Jul 29, 2015
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: thebigA (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /659 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▲0.74ms] Passed 4 tests

An overview of server-side resources used by DataFlexor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2343.70 ▼2.78
Dashboard /wp-admin3.61 ▲0.3051.33 ▲1.05
Posts /wp-admin/edit.php3.66 ▲0.3061.53 ▲10.05
Add New Post /wp-admin/post-new.php6.13 ▲0.24101.37 ▲1.19
Media Library /wp-admin/upload.php3.47 ▲0.2440.24 ▲3.50

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

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

Browser metrics Passed 4 tests

Checking browser requirements for DataFlexor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.34 ▲0.051.67 ▼0.1142.06 ▲1.69
Dashboard /wp-admin2,202 ▲225.60 ▼0.0692.65 ▼2.0142.98 ▲0.35
Posts /wp-admin/edit.php2,107 ▲42.02 ▼0.0042.91 ▲1.5436.63 ▲0.73
Add New Post /wp-admin/post-new.php1,535 ▲920.89 ▼2.81626.81 ▼35.7351.31 ▼0.30
Media Library /wp-admin/upload.php1,401 ▲44.10 ▼0.27101.03 ▼11.1744.64 ▼0.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% 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 need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Make a set of categories for your custom category type.), #2 (Link your Advanced Custom Fields group to the relevant category.), #3 (Make new entries.), #4 (See the results appear on the front end.)
You can take inspiration from this readme.txt

dataflexor/dataflexor.php Passed 13 tests

"DataFlexor" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
131 characters long description:
DataFlexor is a data management framework to allow easy extension of WordPress content. Requires the Advanced Custom Fields plugin.

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 plugin1,684 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP53478581,143
JavaScript148113355
Markdown226082
PO File2182268
CSS172036

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity57.00
▷ Minimum class complexity5.00
▷ Maximum class complexity189.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods84
▷ Static methods22.38%
▷ Public methods84100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.25MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Tax-meta-class/images/edit.png1.54KB1.38KB▼ 10.34%
Tax-meta-class/images/remove.png2.15KB1.67KB▼ 22.25%
screenshot-4.png42.63KB19.31KB▼ 54.70%
screenshot-1.png59.49KB28.60KB▼ 51.92%
Tax-meta-class/images/add.png1.84KB1.49KB▼ 19.11%