94% gppro-export-css

Code Review | Genesis Design Palette Pro - Export CSS

WordPress plugin Genesis Design Palette Pro - Export CSS scored 94% from 54 tests.

About plugin

  • Plugin page: gppro-export-css
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.5
  • WordPress version: 5.8.1
  • First release: Jan 27, 2014
  • Latest release: Sep 8, 2020
  • Number of updates: 16
  • Update frequency: every 151.0 days
  • Top authors: Nick_theGeek (68.75%)norcross (37.5%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 4,840 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼148.46ms] Passed 4 tests

This is a short check of server-side resources used by Genesis Design Palette Pro - Export CSS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.78 ▲12.86
Dashboard /wp-admin3.07 ▲0.0145.12 ▼0.30
Posts /wp-admin/edit.php3.12 ▲0.0150.32 ▼2.65
Add New Post /wp-admin/post-new.php5.42 ▼0.0195.20 ▼589.02
Media Library /wp-admin/upload.php3.01 ▲0.0135.49 ▼1.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Design Palette Pro - Export CSS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.79 ▲0.1612.07 ▲1.7650.03 ▲0.66
Dashboard /wp-admin2,970 ▲365.85 ▼0.12147.58 ▲2.54121.38 ▲1.13
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0069.20 ▼2.38103.78 ▲0.26
Add New Post /wp-admin/post-new.php1,604 ▼2,12018.84 ▲3.65387.33 ▼93.44123.11 ▲0.01
Media Library /wp-admin/upload.php1,807 ▼35.03 ▼0.00160.74 ▼1.64131.56 ▲4.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 plugin_basename() in wp-content/plugins/gppro-export-css/gppro-export-css.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: genesis, genesis design palette pro

gppro-export-css/gppro-export-css.php Passed 13 tests

The entry point to "Genesis Design Palette Pro - Export CSS" version 1.1.1 is a PHP file that has certain tags in its header comment area
36 characters long description:
Adds a button to export raw CSS file

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin256 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP155116159
Markdown127053
PO File1111144

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected