68% skyscraper-io

Code Review | Skyscraper.io

WordPress plugin Skyscraper.io scored 68% from 54 tests.

About plugin

  • Plugin page: skyscraper-io
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.5.2
  • WordPress version: 5.8.1
  • First release: May 27, 2013
  • Latest release: Jul 10, 2013
  • Number of updates: 10
  • Update frequency: every 4.4 days
  • Top authors: rafaelchacon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,393 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼179.81ms] Passed 4 tests

An overview of server-side resources used by Skyscraper.io
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1239.14 ▲20.28
Dashboard /wp-admin2.74 ▼0.3224.74 ▼22.76
Posts /wp-admin/edit.php2.74 ▼0.3722.39 ▼21.96
Add New Post /wp-admin/post-new.php2.74 ▼2.6919.50 ▼647.01
Media Library /wp-admin/upload.php2.74 ▼0.2716.83 ▼27.52
Skyscraper /wp-admin/options-general.php?page=skyscraper-io/skyscraper_io.php2.7421.09

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Skyscraper.io
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲12215.79 ▲0.1910.97 ▼3.6045.92 ▼1.28
Dashboard /wp-admin2,978 ▲445.92 ▼0.04135.68 ▼3.17109.38 ▼12.45
Posts /wp-admin/edit.php2,744 ▲52.73 ▼0.0062.27 ▼2.1385.40 ▼3.83
Add New Post /wp-admin/post-new.php1,503 ▼16918.67 ▼0.31362.20 ▼18.76108.47 ▼6.67
Media Library /wp-admin/upload.php1,815 ▲85.04 ▲0.01144.22 ▼23.58124.66 ▼18.51
Skyscraper /wp-admin/options-general.php?page=skyscraper-io/skyscraper_io.php1,1452.3357.7488.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > 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.
  • Zombie WordPress options detected upon uninstall: 6 options
    • is-not-first-load
    • skyscraper_io_widget_page_id
    • skyscraper_io_widget_permlink
    • skyscraper_io_widget_title
    • skyscraper_io_site_id
    • skyscraper_io_widget_enabled

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=skyscraper-io/skyscraper_io.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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/skyscraper-io/skyscraper_io.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

skyscraper-io/skyscraper_io.php 92% from 13 tests

The main PHP script in "Skyscraper.io" version 1.0.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("skyscraper-io.php" instead of "skyscraper_io.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected246 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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 functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo-32x32.png1.10KB0.16KB▼ 85.42%
skyscraper-wp-plugin-1.png66.11KB16.77KB▼ 74.63%