68% refly

Code Review | REFLY

WordPress plugin REFLY scored 68% from 53 tests.

About plugin

  • Plugin page: refly
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.3
  • WordPress version: 5.8.1
  • First release: Mar 3, 2016
  • Latest release: Mar 18, 2016
  • Number of updates: 6
  • Update frequency: every 4.0 days
  • Top authors: reflyit (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 588 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼295.02ms] Passed 4 tests

Analyzing server-side resources used by REFLY
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1534.88 ▲14.93
Dashboard /wp-admin2.77 ▼0.2924.18 ▼19.58
Posts /wp-admin/edit.php2.77 ▼0.3422.57 ▼19.13
Add New Post /wp-admin/post-new.php2.77 ▼2.6622.50 ▼1,125.79
Media Library /wp-admin/upload.php2.77 ▼0.2423.62 ▼15.56
Refly /wp-admin/options-general.php?page=refly/refly.php2.7722.55

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 3 new options
New WordPress options
refly_sposts
refly_data
refly_sindex

Browser metrics Passed 4 tests

An overview of browser requirements for REFLY
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲10216.22 ▲0.378.07 ▼0.0546.54 ▼6.03
Dashboard /wp-admin2,968 ▲1186.13 ▲0.29139.77 ▲9.7099.77 ▼5.97
Posts /wp-admin/edit.php2,711 ▲52.69 ▲0.0065.81 ▼3.3690.40 ▲0.35
Add New Post /wp-admin/post-new.php1,856 ▲20319.11 ▲0.31358.54 ▼16.34111.93 ▲1.88
Media Library /wp-admin/upload.php1,780 ▲55.00 ▲0.01147.50 ▼4.31107.71 ▼6.98
Refly /wp-admin/options-general.php?page=refly/refly.php1,0142.0954.2657.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 3 options in the database
    • refly_data
    • refly_sposts
    • refly_sindex

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=refly/refly.php
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/refly/refly.php:23

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (publish already existing post by clicking the reply button below the post.), #2 (Publish and Refly instantly share the post you published in wordpress.)
The official readme.txt might help

refly/refly.php Passed 13 tests

Analyzing the main PHP file in "REFLY" version 1.3
28 characters long description:
Publish and Refly your posts

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
There were no executable files found in this plugin153 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12712153

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.19
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.29MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/refly_logo.png12.54KB1.23KB▼ 90.19%
images/wordpress.png27.89KB15.50KB▼ 44.44%
screenshot-1.png101.85KB31.31KB▼ 69.26%
screenshot-2.png63.96KB18.89KB▼ 70.46%
images/refly.png90.77KB2.64KB▼ 97.09%