83% 99fy-core

Code Review | Free WooCommerce Theme 99fy Extension

WordPress plugin Free WooCommerce Theme 99fy Extension scored83%from 54 tests.

About plugin

  • Plugin page: 99fy-core
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2019
  • Latest release: Aug 1, 2023
  • Number of updates: 26
  • Update frequency: every 52.7 days
  • Top authors: hasthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /18,317 total downloads

Benchmarks

Plugin footprint 82% 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 gracefully, with no errors

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

Server-side resources used by Free WooCommerce Theme 99fy Extension
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0533.71 ▼1.58
Dashboard /wp-admin3.35 ▲0.0546.44 ▲0.79
Posts /wp-admin/edit.php3.40 ▲0.0547.56 ▲0.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0580.01 ▼26.39
Media Library /wp-admin/upload.php3.27 ▲0.0535.03 ▲3.22

Server storage [IO: ▲47.73MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • The filesystem usage should be lower than 25MB (currently using 47.73MB)
Filesystem: 190 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
nnfy_breadcrumb_status
nnfy_do_activation_redirect
widget_theysaidso_widget
nnfy_page_title_status
widget_recent-posts
theysaidso_admin_options
nnfy_footer_copyright_status
...

Browser metrics Passed 4 tests

An overview of browser requirements for Free WooCommerce Theme 99fy Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.58 ▼0.844.81 ▲3.1939.70 ▼0.32
Dashboard /wp-admin2,224 ▲334.90 ▲0.02111.72 ▲12.2045.18 ▲3.65
Posts /wp-admin/edit.php2,106 ▲172.06 ▲0.0634.54 ▼2.2936.15 ▲4.33
Add New Post /wp-admin/post-new.php1,546 ▲1123.29 ▲0.20662.59 ▼12.8949.71 ▲4.53
Media Library /wp-admin/upload.php1,403 ▲184.23 ▼0.0197.96 ▼3.2840.64 ▼5.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • nnfy_do_activation_redirect
    • theysaidso_admin_options
    • widget_recent-comments

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/99fy-core/includes/demo_importer.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/99fy-core/admin/classes/templates_list.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, elementor page builder, one click demo, elementor, elementor addon

99fy-core/nnfy_core.php 77% from 13 tests

The principal PHP file in "Free WooCommerce Theme 99fy Extension" v. 1.2.8 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("99fy-core.php" instead of "nnfy_core.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)

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 plugin408,560 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
XML251,91210,575393,641
PHP281,1156496,720
SVG2002,690
JSON120802,301
CSS11205861,989
JavaScript132562601,200
YAML10019

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity17.35
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods180
▷ Static methods1810.00%
▷ Public methods15787.22%
▷ Protected methods179.44%
▷ Private methods63.33%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/extensions/whols-pro.png15.30KB7.40KB▼ 51.65%
admin/assets/images/extensions/swatchly-pro.png13.99KB5.41KB▼ 61.37%
(invalid) admin/assets/images/extensions/ht-google-place-review.png2.64KB0.00KB▼ 100.00%
(invalid) admin/assets/images/extensions/docus-pro.png3.98KB0.00KB▼ 100.00%
admin/assets/images/extensions/hashbar-pro.png3.15KB3.30KB0.00%