84% g-core-labs-cdn

Code Review | Gcore CDN

WordPress plugin Gcore CDN scored 84% from 54 tests.

About plugin

  • Plugin page: g-core-labs-cdn
  • Plugin version: 1.1.10
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 10, 2019
  • Latest release: Sep 25, 2023
  • Number of updates: 48
  • Update frequency: every 30.8 days
  • Top authors: pzhukovskiy (66.67%)gcorewpress (35.42%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,650 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.66ms] Passed 4 tests

Analyzing server-side resources used by Gcore CDN
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.97 ▼8.41
Dashboard /wp-admin3.42 ▲0.1244.52 ▼4.51
Posts /wp-admin/edit.php3.46 ▲0.1047.26 ▼0.59
Add New Post /wp-admin/post-new.php6.11 ▲0.2383.26 ▼9.14
Media Library /wp-admin/upload.php3.36 ▲0.1333.92 ▲0.91
CDN settings /wp-admin/admin.php?page=gcore_labs3.4338.31
About /wp-admin/admin.php?page=gcore_labs_about3.3030.50
Help /wp-admin/admin.php?page=gcore_labs_help3.3028.41

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 18 new options
New WordPress options
gcore_folder_wp
gcore_type_advanced
gcore_type_js
gcore_folder_advanced
widget_recent-posts
theysaidso_admin_options
gcore_folder_content
widget_recent-comments
gcore_type_audio
gcore_type_video
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gcore CDN
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.53 ▼0.831.55 ▼0.2740.58 ▼12.45
Dashboard /wp-admin2,239 ▲515.83 ▼0.02101.38 ▼17.7081.51 ▲35.68
Posts /wp-admin/edit.php2,122 ▲361.99 ▼0.0137.61 ▲1.7634.85 ▲1.58
Add New Post /wp-admin/post-new.php1,702 ▲16024.46 ▲6.12673.07 ▲33.5653.93 ▼0.50
Media Library /wp-admin/upload.php1,409 ▲244.23 ▲0.0698.43 ▼1.4275.69 ▲31.92
CDN settings /wp-admin/admin.php?page=gcore_labs8852.1024.8333.34
About /wp-admin/admin.php?page=gcore_labs_about8082.0124.1723.44
Help /wp-admin/admin.php?page=gcore_labs_help7812.0526.5125.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 18 options
    • gcore_type_js
    • gcore_folder_plugins
    • gcore_type_archive
    • widget_theysaidso_widget
    • gcore_type_advanced
    • gcore_type_image
    • theysaidso_admin_options
    • gcore_type_css
    • gcore_type_video
    • gcore_folder_wp
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-core-labs-cdn/includes/function.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-core-labs-cdn/includes/function.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/g-core-labs-cdn/includes/about.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/g-core-labs-cdn/includes/help.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/g-core-labs-cdn/includes/admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/g-core-labs-cdn/includes/stream.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/g-core-labs-cdn/ajax/save.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: content delivery network, cdn, pagespeed, caching, bandwidth...

g-core-labs-cdn/index.php 92% from 13 tests

"Gcore CDN" version 1.1.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("g-core-labs-cdn.php" instead of "index.php")

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 plugin1,711 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP91001331,153
PO File3124142375
JavaScript285146
CSS41437

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions18
▷ Named functions1688.89%
▷ Anonymous functions211.11%
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
plugin-icon.png1.78KB0.60KB▼ 66.37%