84% flexia-core

Code Review | Flexia Core

WordPress plugin Flexia Core scored84%from 54 tests.

About plugin

  • Plugin page: flexia-core
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Dec 19, 2017
  • Latest release: Oct 22, 2020
  • Number of updates: 32
  • Update frequency: every 32.4 days
  • Top authors: re_enter_rupok (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /15,348 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
Install script ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▲0.51ms] Passed 4 tests

This is a short check of server-side resources used by Flexia Core
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4043.53 ▲1.71
Dashboard /wp-admin3.69 ▲0.3550.27 ▼13.47
Posts /wp-admin/edit.php3.75 ▲0.3857.37 ▲4.44
Add New Post /wp-admin/post-new.php6.21 ▲0.32109.93 ▲9.54
Media Library /wp-admin/upload.php3.56 ▲0.3244.90 ▲9.36

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 9 new options
New WordPress options
wpins_flexia-core_force_tracked
wpins_flexia-core_migrated
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
wpdeveloper_plugins_data
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flexia Core
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17113.32 ▼1.208.45 ▲6.5441.94 ▼2.34
Dashboard /wp-admin2,227 ▲505.59 ▼0.0791.40 ▼1.2341.82 ▼1.08
Posts /wp-admin/edit.php2,139 ▲392.15 ▲0.1439.95 ▲4.6435.91 ▼3.32
Add New Post /wp-admin/post-new.php1,561 ▲3323.79 ▲0.65697.17 ▲62.1356.82 ▲2.04
Media Library /wp-admin/upload.php1,432 ▲354.23 ▲0.03102.83 ▼2.0943.01 ▼4.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • db_upgraded
    • wpins_flexia-core_migrated
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • wpins_flexia-core_force_tracked

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexia-core/public/shortcodes/class-flexia-core-shortcodes.php:27

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: customizer, bootstrap-4, metabox, shortcodes, google analytics...

flexia-core/flexia-core.php Passed 13 tests

The main PHP file in "Flexia Core" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
80 characters long description:
Core plugin for Flexia theme. Controls all the plugin territory functionalities.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,731 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP153021,0771,726
JavaScript12273
SVG2002
CSS1040

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.91
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods100
▷ Static methods22.00%
▷ Public methods8080.00%
▷ Protected methods66.00%
▷ Private methods1414.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.40MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/flexia-banner.png263.84KB291.70KB0.00%
admin/img/flexia-logo-text.png10.97KB6.03KB▼ 45.03%
admin/img/eael-pro-banner.png131.60KB147.63KB0.00%