94% albacross

Code Review | Albacross

WordPress plugin Albacross scored 94% from 54 tests.

About plugin

  • Plugin page: albacross
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.1-5.4.1
  • WordPress version: 5.8.1
  • First release: Aug 21, 2015
  • Latest release: May 4, 2020
  • Number of updates: 30
  • Update frequency: every 57.4 days
  • Top authors: albacross (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

3,000+ active / 19,610 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼179.91ms] Passed 4 tests

Analyzing server-side resources used by Albacross
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0137.97 ▼5.25
Dashboard /wp-admin3.07 ▲0.0251.27 ▲0.97
Posts /wp-admin/edit.php3.12 ▲0.0245.52 ▼5.92
Add New Post /wp-admin/post-new.php5.43 ▼0.00104.80 ▼709.45
Media Library /wp-admin/upload.php3.02 ▲0.0134.74 ▲4.16

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Albacross: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,734 ▲15215.87 ▲0.3510.26 ▲1.4348.90 ▼0.63
Dashboard /wp-admin2,987 ▲535.93 ▼0.08193.26 ▲36.84132.38 ▲22.24
Posts /wp-admin/edit.php2,770 ▲312.71 ▼0.0268.12 ▼2.0899.43 ▲5.25
Add New Post /wp-admin/post-new.php1,524 ▼15918.49 ▼0.22388.63 ▼44.65106.07 ▼8.10
Media Library /wp-admin/upload.php1,841 ▲1055.02 ▲0.00150.59 ▼25.87110.86 ▼9.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/albacross/plugin.php:20

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 errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === albacross === )
The official readme.txt might help

albacross/plugin.php 92% from 13 tests

The main file in "Albacross" v. 1.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("albacross.php" instead of "plugin.php")

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
There were no executable files found in this plugin101 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File15530

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin