67% fleeps

Code Review | Fleeps

WordPress plugin Fleeps scored67%from 54 tests.

About plugin

  • Plugin page: fleeps
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Nov 30, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: timotheeduran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /23 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
This plugin's installer ran successfully

Server metrics [RAM: ▲1.32MB] [CPU: ▲2.71ms] Passed 4 tests

Analyzing server-side resources used by Fleeps
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.83 ▲1.3744.06 ▲4.93
Dashboard /wp-admin4.67 ▲1.3254.94 ▼11.94
Posts /wp-admin/edit.php4.72 ▲1.3660.93 ▲7.68
Add New Post /wp-admin/post-new.php7.19 ▲1.30107.03 ▲10.18
Media Library /wp-admin/upload.php4.53 ▲1.3046.25 ▲11.27

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2,269 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Fleeps
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4414.04 ▼0.751.66 ▲0.0437.19 ▼1.00
Dashboard /wp-admin2,205 ▲285.61 ▲0.0396.40 ▼4.7443.73 ▼1.75
Posts /wp-admin/edit.php2,116 ▲162.00 ▲0.0639.82 ▼0.3336.35 ▼5.12
Add New Post /wp-admin/post-new.php1,539 ▲1323.45 ▲0.42699.11 ▲105.1859.52 ▲4.35
Media Library /wp-admin/upload.php1,413 ▲164.17 ▼0.0695.02 ▼6.3342.92 ▲1.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/fleeps/vendor/phpcompatibility/php-compatibility/phpunit-bootstrap.php
  • 1045× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/fleeps/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpClient\\Internal\\ClientState' not found in wp-content/plugins/fleeps/vendor/symfony/http-client/Internal/NativeClientState.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/fleeps/vendor/twig/twig/src/Node/Expression/Binary/AbstractBinary.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/fleeps/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ClosingPHPTagSniff.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/fleeps/vendor/nyholm/psr7/src/UploadedFile.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Core\\AbstractMethodUnitTest' not found in wp-content/plugins/fleeps/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/ArrayKeywordTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/fleeps/vendor/twig/twig/src/Node/Expression/MethodCallExpression.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PHPCompatibility\\AbstractFunctionCallParameterSniff' not found in wp-content/plugins/fleeps/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/ParameterValues/RemovedNonCryptoHashSniff.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestFactoryInterface' not found in wp-content/plugins/fleeps/vendor/nyholm/psr7/src/Factory/Psr17Factory.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fleeps/vendor/symfony/http-client-contracts/Test/HttpClientTestCase.php:24

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 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
1 plugin tags: fleeps

fleeps/fleeps-wordpress-export.php 69% from 13 tests

"Fleeps" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.9.1" instead of "5.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("fleeps.php" instead of "fleeps-wordpress-export.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please fix the following items
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/fleeps/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
      • wp-content/plugins/fleeps/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
159,332 lines of code in 1,847 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,38630,27857,370133,704
Markdown372,35307,270
Pascal1303,2317,1186,576
XML1744277765,981
JSON26002,879
JavaScript567568592,089
CSS3318992665
XSD160130
HTML13018
DOS Batch241010
reStructuredText18510

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 478)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity14.79
▷ Minimum class complexity1.00
▷ Maximum class complexity724.00
Average method complexity4.66
▷ Minimum method complexity1.00
▷ Maximum method complexity478.00
Code structure
Namespaces253
Interfaces63
Traits17
Classes1,138
▷ Abstract classes353.08%
▷ Concrete classes1,10396.92%
▷ Final classes13412.15%
Methods4,703
▷ Static methods3607.65%
▷ Public methods3,94483.86%
▷ Protected methods4329.19%
▷ Private methods3276.95%
Functions394
▷ Named functions18246.19%
▷ Anonymous functions21253.81%
Constants290
▷ Global constants12342.41%
▷ Class constants16757.59%
▷ Public constants14486.23%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin