84% get-data

Code Review | Get Data

WordPress plugin Get Data scored84%from 54 tests.

About plugin

  • Plugin page: get-data
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2015
  • Latest release: Dec 4, 2022
  • Number of updates: 18
  • Update frequency: every 155.8 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

An overview of server-side resources used by Get Data
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.00 ▼4.36
Dashboard /wp-admin3.36 ▲0.0648.45 ▼6.20
Posts /wp-admin/edit.php3.41 ▲0.0546.85 ▼3.76
Add New Post /wp-admin/post-new.php5.94 ▲0.05104.30 ▲8.12
Media Library /wp-admin/upload.php3.28 ▲0.0537.43 ▲1.64

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 14 new options
New WordPress options
start_element_header
can_compress_scripts
get_data_link_footer
widget_recent-posts
get_data_link_header
get_data_view_header
start_element_footer
end_element_footer
get_data_view_footer
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Get Data
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.57 ▼0.801.79 ▼0.0642.60 ▼0.40
Dashboard /wp-admin2,227 ▲395.80 ▼0.09103.49 ▼2.4673.21 ▲29.07
Posts /wp-admin/edit.php2,113 ▲242.00 ▼0.0540.17 ▲3.0233.53 ▼0.79
Add New Post /wp-admin/post-new.php1,535 ▲223.18 ▼0.07689.74 ▼11.4154.80 ▼2.76
Media Library /wp-admin/upload.php1,403 ▲154.23 ▲0.03103.52 ▼3.1370.75 ▲21.88

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
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • end_element_footer
    • db_upgraded
    • start_element_header
    • can_compress_scripts
    • get_data_link_header
    • get_data_view_header
    • theysaidso_admin_options
    • widget_recent-posts
    • get_data_view_footer
    • widget_theysaidso_widget
    • ...

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/get-data/get-data.php:26

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 errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please a description for screenshot #2 in get-data/assets to your readme.txt
Please take inspiration from this readme.txt

get-data/get-data.php Passed 13 tests

Analyzing the main PHP file in "Get Data" version 1.4
88 characters long description:
By using Get Data Plugin, you can get content by URL and insert data in header or footer

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin193 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22614193

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png30.97KB14.77KB▼ 52.30%
screenshot-1.png24.76KB11.92KB▼ 51.86%
i/data.png0.50KB0.49KB▼ 1.75%